-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
77 lines (69 loc) · 1.6 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
77
version: '3.7'
services:
optimizer:
build:
context: services/optimizer
dockerfile: Dockerfile
volumes:
- './results:/usr/src/app/results'
environment:
- SMTP_SETTINGS=/run/secrets/smtp_settings.cfg
- RESULTS_DIR=/usr/src/app/results
- RUNS_SERVICE_URL=http://runs:5000
secrets:
- smtp_settings.cfg
depends_on:
- runs
runs:
build:
context: ./services/runs
dockerfile: Dockerfile
volumes:
- './services/runs:/usr/src/app'
ports:
- 5000
environment:
- FLASK_ENV=development
- APP_SETTINGS=project.config.DevelopmentConfig
- DATABASE_URL=postgres://postgres:postgres@runs-db:5432/runs_dev
- DATABASE_TEST_URL=postgres://postgres:postgres@runs-db:5432/runs_test
depends_on:
- runs-db
runs-db:
build:
context: ./services/runs/project/db
dockerfile: Dockerfile
ports:
- 5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
nginx:
build:
context: ./services/nginx
dockerfile: Dockerfile
restart: always
ports:
- 80:80
depends_on:
- runs
- client
client:
build:
context: ./services/client
dockerfile: Dockerfile
volumes:
- './services/client:/usr/src/app'
- '/usr/src/app/node_modules'
ports:
- 3007:3000
environment:
- NODE_ENV=development
- REACT_APP_RUNS_SERVICE_URL=http://192.168.1.72
depends_on:
- runs
secrets:
smtp_settings.cfg:
file: ./services/optimizer/smtp_settings.cfg
volumes:
runfile_folder: