-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.04 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
version: '3.4'
services:
flask:
container_name: flask
build: ./flask-server
ports:
- '5000:5000'
volumes:
- ./flask-server:/app
environment:
- PG_HOST=postgres
- PG_PORT=5432
- PG_USERNAME=${PG_USER}
- PG_PASSWORD=${PG_PWD}
links:
- postgres
depends_on:
- postgres
angular:
container_name: angular
build:
context: .
dockerfile: Dockerfile
volumes:
- '.:/app'
- '/app/node_modules'
ports:
- '4201:4200'
environment:
- PG_HOST=postgres
- PG_PORT=5432
- PG_USERNAME=${PG_USER}
- PG_PASSWORD=${PG_PWD}
- RUN_MIGRATIONS=true
depends_on:
- postgres
- flask
postgres:
container_name: postgres
image: postgres:11-alpine
volumes:
- /Volumes/Media/dev/Workspaces/qMe/pgData:/var/lib/postgresql/data
ports:
- '32000:5432'
environment:
- POSTGRES_USER=${PG_USER}
- POSTGRES_PASSWORD=${PG_PWD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
pg-data: