-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (47 loc) · 991 Bytes
/
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
version: '3.7'
services:
api:
container_name: api
build:
context: ./server
dockerfile: Dockerfile.api.dev
command: python manage.py run -h 0.0.0.0
volumes:
- ./server:/usr/src/app/
ports:
- 5001:5000
env_file:
- ./server/.env.dev-sample
depends_on:
- db
- redis
db:
container_name: db
build:
context: ./server
dockerfile: Dockerfile.db.dev
ports:
- 5436:5432
env_file:
- ./server/.env.db.dev-sample
redis:
container_name: redis
image: redis:6.0.5-alpine
client:
container_name: ui
build:
context: ./client
dockerfile: Dockerfile.client.dev
volumes:
- './client:/usr/src/app'
- '/usr/src/app/node_modules'
ports:
- '80:3000'
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
- REACT_APP_API_SERVICE_URL=${REACT_APP_API_SERVICE_URL}
depends_on:
- api
links:
- api