-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·57 lines (55 loc) · 1.13 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
version: '3'
services:
api:
build: backend
command: python src/manage.py runserver_plus [::]:8000
container_name: api_dev
depends_on:
- postgres
- redis
env_file: ./.env
environment:
DJANGO_SETTINGS_MODULE: jumpcut.settings.www_settings
ports:
- 8000:8000
volumes:
- ./backend:/code
frontend:
build: frontend
command: yarn run dev
container_name: frontend
env_file: ./frontend/.env
ports:
- 8001:3000
volumes:
- ./frontend/src:/react/src
postgres:
image: postgres:alpine
container_name: db_dev
volumes:
- pgdata:/var/lib/postgresql/data/
ports:
- 5432:5432
env_file: ./.env
restart: always
redis:
image: redis:alpine
container_name: redis_dev
tracker:
build:
context: ./backend
command: python src/manage.py runserver_plus 0.0.0.0:7070
container_name: tracker_dev
depends_on:
- api
- postgres
- redis
env_file: ./.env
environment:
DJANGO_SETTINGS_MODULE: jumpcut.settings.tracker_settings
ports:
- 7070:7070
volumes:
- ./backend:/code
volumes:
pgdata: