-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
52 lines (47 loc) · 1.28 KB
/
docker-compose.yaml
File metadata and controls
52 lines (47 loc) · 1.28 KB
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
version: '3'
services:
redis:
image: redis:alpine
ports:
- 6379:6379
network_mode: "bridge"
web:
container_name: aslcv2_be
image: ggetzie/aslcv2_be_web:latest
build:
context: .
dockerfile: Dockerfile
command: >
gunicorn config.wsgi:application --name aslcv2_be --workers 4 --timeout 120 --bind 0.0.0.0:8009
ports:
- 8009:8009
network_mode: "bridge"
env_file:
- aslcv2_be.env
volumes:
- /C/aslcv2_be/staticfiles:/usr/local/src/aslcv2_be/staticfiles
- /C/Users/ggetz/Documents/GitHub/aslcv2_be/media:/usr/local/src/aslcv2_be/media
# - /D/ararat/data/files:/usr/local/src/aslcv2_be/media
- /C/aslcv2_be/logs:/usr/local/src/aslcv2_be/logs
depends_on:
- redis
links:
- redis:redis
celery:
build: .
command: celery --app=config.celery_app worker --loglevel=INFO -n worker.%%h
env_file:
- aslcv2_be.env
network_mode: "bridge"
depends_on:
- web
- redis
volumes:
- /C/Users/ggetz/Documents/GitHub/aslcv2_be/media:/usr/local/src/aslcv2_be/media
# - /D/ararat/data/files:/usr/local/src/aslcv2_be/media
- /C/aslcv2_be/logs:/usr/local/src/aslcv2_be/logs
links:
- redis:redis
# volumes:
# staticfiles:
# media: