-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (64 loc) · 1.34 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3'
services:
postgres:
container_name: postgres
image: postgres:12.0-alpine
logging:
driver: none
#volumes:
# - ./postgres:/var/lib/postgresql/data:rw
#ports:
# - 5432:5432
environment:
POSTGRES_DB: db
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
redis:
container_name: redis
image: redis:6.0-alpine
logging:
driver: none
#volumes:
# - ./redis:/data:rw
django:
# restart: always
container_name: django
build: ./
entrypoint: ./entrypoint.sh
volumes:
- ./logs:/logs
- ./src:/src:rw
- ./django.env:/src/core/.env
- ./media:/src/media
- ./gunicorn.conf.py:/src/gunicorn.conf.py
- ./static:/src/staticfiles
environment:
MODE: DEV
depends_on:
- redis
- postgres
celery:
# restart: always
container_name: celery
build: ./
entrypoint: ./entrypoint.sh
volumes:
- ./src:/src:rw
- ./django.env:/src/core/.env
depends_on:
- redis
environment:
MODE: CELERY
nginx_dev:
container_name: nginx
image: nginx:1-alpine
environment:
- TZ=Asia/Almaty
depends_on:
- django
volumes:
- ./deploy/dev:/etc/nginx/conf.d
- ./static:/staticfiles
- ./media:/media
ports:
- "8000:8000"