-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.yml
70 lines (64 loc) · 1.33 KB
/
local.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
59
60
61
62
63
64
65
66
67
68
69
70
version: "3.9"
services:
db:
build:
context: .
dockerfile: ./docker/database/Dockerfile
container_name: c-db
volumes:
- db:/var/lib/postgresql/data
# networks:
# - private_network
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
backend:
hostname: backend
image: django:django-i
container_name: c-api
build:
context: .
dockerfile: ./docker/backend/Dockerfile
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./backend/:/app/
- staticfiles-backend:/app/staticfiles
- mediafiles-backend:/app/mediafiles
env_file:
- .env
ports:
- 8000:8000
# networks:
# - private_network
depends_on:
- db
- redis
redis:
image: redis:alpine
container_name: c-redis
# networks:
# - private_network
frontend:
hostname: frontend
build:
context: .
dockerfile: ./docker/frontend/Dockerfile
container_name: c-client
ports:
- 3000:3000
env_file:
- .env
volumes:
- frontend-assets:/app/static_assets
# networks:
# - private_network
# depends_on:
# - django
# networks:
# private_network:
volumes:
db:
staticfiles-backend:
mediafiles-backend:
frontend-assets: