-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.yml
76 lines (69 loc) · 1.58 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.7'
services:
backend:
build:
context: ./services/backend
dockerfile: Dockerfile
entrypoint: ['/usr/src/app/entrypoint.sh']
volumes:
- ./services/backend:/usr/src/app
ports:
- 5001:5000
environment:
- FLASK_ENV=development
- APP_SETTINGS=project.config.DevelopmentConfig
- DATABASE_URL=postgresql://postgres:postgres@db:5432/users_dev
- DATABASE_TEST_URL=postgresql://postgres:postgres@db:5432/users_test
- SECRET_KEY=my_precious
depends_on:
- db
networks:
- api_bridge
restart: always
db:
build:
context: ./services/backend/project/db
dockerfile: Dockerfile
ports:
- 5436:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATA=/var/lib/postgresql/data/
volumes:
- users_data:/var/lib/postgresql/data/
networks:
- api_bridge
frontend:
build:
context: ./services/frontend
dockerfile: Dockerfile
volumes:
- './services/frontend/ui:/app'
- '/app/node_modules'
ports:
- 3007:8080
environment:
- CHOKIDAR_USEPOLLING=true
- NODE_ENV=development
- BACKEND_SERVICE_URL=http://127.0.0.1:5001
- VUE_GATEWAY_URL=http://127.0.0.1:3007
networks:
- api_bridge
nginx:
build:
context: ./services/nginx
dockerfile: Dockerfile
restart: always
ports:
- 4433:443
depends_on:
- backend
- frontend
networks:
- api_bridge
networks:
api_bridge:
driver: bridge
volumes:
users_data: