-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (41 loc) · 1.02 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
version: '3.6'
services:
gui:
build:
context: .
dockerfile: ./docker/gui/Dockerfile
target: assignment-gui-runtime
restart: always
ports:
- 80:80
depends_on:
- api
api:
build:
context: .
dockerfile: docker/api/Dockerfile
target: assignment-api-runtime
restart: always
ports:
- 5000:5000
depends_on:
- db
volumes:
- app-data:/opt/ea-assignment
db:
build:
context: .
dockerfile: docker/api/Dockerfile
target: assignment-database
restart: always
ports:
- 5432
environment:
- POSTGRES_DB=assignment_db
- POSTGRES_PASSWORD=admin
- POSTGRES_USER=admin
volumes:
- db-data:/var/lib/postgresql/data
volumes:
db-data:
app-data: