-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (51 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
56 lines (51 loc) · 1.18 KB
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
version: '3.8'
services:
frontend:
build:
context: ./services/frontend
dockerfile: Dockerfile
volumes:
- './services/frontend:/usr/src/app'
- '/usr/src/app/node_modules'
ports:
- 3007:3000
environment:
- NODE_ENV=development
- REACT_APP_EVS_SERVICE_URL=${REACT_APP_EVS_SERVICE_URL}
depends_on:
- evs
evs:
build:
context: ./services/evs
dockerfile: Dockerfile
volumes:
- './services/evs:/usr/src/app'
expose:
- 5000
environment:
- FLASK_ENV=development
- APP_SETTINGS=project.config.DevelopmentConfig
- DATABASE_URL=postgres://postgres:postgres@evs-db:5432/evs_dev
- DATABASE_TEST_URL=postgres://postgres:postgres@evs-db:5432/evs_test
entrypoint: ./entrypoint.sh
depends_on:
- evs-db
evs-db:
build:
context: ./services/evs/project/db
dockerfile: Dockerfile
expose:
- 5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
nginx:
build:
context: ./services/nginx
dockerfile: Dockerfile
restart: always
ports:
- 80:80
depends_on:
- evs
- frontend