-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (44 loc) · 980 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
version: '3.9'
name: testing-dev
services:
client:
build:
context: ./client
dockerfile: Dockerfile
args:
- API_URL="http://localhost:8000/api/"
ports:
- 8080:8080
volumes:
- ./client:/app
- /app/node_modules
environment:
- API_URL="http://localhost:8000/api"
- CHOKIDAR_USEPOLLING=true
stdin_open: true
tty: true
restart: on-failure
api:
build: ./app
command: python manage.py runserver 0.0.0.0:8000
stdin_open: true
tty: true
volumes:
- ./app/:/usr/src/app/
ports:
- 8000:8000
env_file:
- ./.env.dev
depends_on:
- db_dev
restart: on-failure
db_dev:
image: postgres:13.0-alpine
volumes:
- postgres_data_dev:/var/lib/postgresql/data_dev/
environment:
- POSTGRES_USER=django
- POSTGRES_PASSWORD=django
- POSTGRES_DB=django_dev
volumes:
postgres_data_dev: