-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-beta.yml
65 lines (58 loc) · 1.3 KB
/
docker-compose-beta.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
version: '3'
services:
web:
build:
context: .
dockerfile: docker/app/Dockerfile
command: bash -c "gunicorn config.wsgi:application --bind 0.0.0.0:8000"
expose:
- 8000
environment:
- SERVER_ENV=beta
volumes:
- static_volume:/usr/src/app/static
- media_volume:/usr/src/app/media
depends_on:
- postgres
postgres:
image: kartoza/postgis:11.0-2.5
restart: always
env_file:
- .env.example
ports:
- 15436:5432
volumes:
- ./postgres-data-dev:/var/lib/postgresql/
nginx:
restart: always
build: docker/nginx/
volumes:
- static_volume:/usr/src/app/static
- media_volume:/usr/src/app/media
ports:
- 8123:80
depends_on:
- web
redis:
image: redis:alpine
restart: always
ports:
- "6379:6379"
volumes:
- ./docker-data/redis/data:/data
# command: redis-server --requirepass ${REDIS_PASSWORD} --appendonly yes
celery:
restart: always
build:
context: .
dockerfile: docker/app/Dockerfile
command: celery -A config worker -l info
celery-beat:
restart: always
build:
context: .
dockerfile: docker/app/Dockerfile
command: celery -A config beat -l info -S django
volumes:
static_volume:
media_volume: