-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
58 lines (53 loc) · 1.37 KB
/
docker-compose-dev.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
version: '3.3'
services:
nginx:
build:
context: ./services/nginx
dockerfile: Dockerfile-dev
restart: always
ports:
- 80:80
depends_on:
- users
- client
users:
build:
context: ./services/users
dockerfile: Dockerfile-dev
volumes:
# env variable is for Windows users, who use VirtualBox to run Docker
# defaults to "." - current working folder
- '${TESTDRIVEN_ROOT_FOLDER-.}/services/users:/usr/src/app'
ports:
- 5001:5000
environment:
- FLASK_ENV=development
- APP_SETTINGS=project.config.DevelopmentConfig
- DATABASE_URL=postgres://postgres:postgres@users-db:5432/users_dev
- DATABASE_TEST_URL=postgres://postgres:postgres@users-db:5432/users_test
depends_on:
- users-db
users-db:
build:
context: ./services/users/project/db
dockerfile: Dockerfile
ports:
- 5435:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
client:
build:
context: ./services/client
dockerfile: Dockerfile-dev
volumes:
- '${TESTDRIVEN_ROOT_FOLDER-.}/services/client:/usr/src/app'
- '/usr/src/app/node_modules'
ports:
- 3007:3000
environment:
- NODE_ENV=development
- REACT_APP_USERS_SERVICE_URL=${REACT_APP_USERS_SERVICE_URL}
- CHOKIDAR_USEPOLLING=true
depends_on:
- users