-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
62 lines (57 loc) · 1.11 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: vertile
networks:
internal_network:
driver: bridge
services:
database:
image: postgres
container_name: database
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_DB: main
volumes:
- db-data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- internal_network
frontend:
build:
context: ./frontend
container_name: frontend
image: frontend
ports:
- "8080:80"
trainer:
build:
context: ./trainer
container_name: trainer
volumes:
- type: bind
source: ./trainer
target: /trainer
ports:
- "8000:8000"
image: trainer
networks:
- internal_network
server:
depends_on:
- database
build:
context: ./server
container_name: server
environment:
DATABASE_URL: postgres://postgres:mysecretpassword@database:5432/main
volumes:
- type: bind
source: ./server
target: /server
ports:
- "3001:3001"
image: server
networks:
- internal_network
volumes:
db-data: