-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (63 loc) · 1.53 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
version: "3"
services:
redis:
image: redis:5-alpine
entrypoint: redis-server --appendonly yes
restart: always
container_name: 'arielinstaller_redis'
volumes:
- ./data/redis:/data
ports:
- '6378:6379'
networks:
testing_net:
ipv4_address: 172.27.1.8
web:
build:
context: ./
dockerfile: Dockerfile
container_name: arielinstaller-prod
restart: on-failure
user: root
volumes:
- .:/arielinstaller
- ./static:/arielinstaller/static
- ../github_projects:/github_projects:rw
command: bash -c "python manage.py migrate --noinput && python manage.py collectstatic --noinput && ls -Als static && gunicorn config.wsgi:application --bind 0.0.0.0:8001"
ports:
- "8001:8001"
networks:
testing_net:
ipv4_address: 172.27.1.10
environment:
- REDIS_PORT=6379
- REDIS_HOST=172.27.1.8
- CREATE_VIRTUAL_ENV=0
rq:
build: .
container_name: 'arielinstaller_celery'
user: root
command: python manage.py rqworker -v 3 default
volumes:
- .:/arielinstaller
- ./static:/arielinstaller/static
- ../github_projects:/github_projects
restart: on-failure
links:
- redis
depends_on:
- web
- redis
networks:
testing_net:
ipv4_address: 172.27.1.11
environment:
- REDIS_PORT=6379
- REDIS_HOST=172.27.1.8
- CREATE_VIRTUAL_ENV=0
networks:
testing_net:
ipam:
driver: default
config:
- subnet: 172.27.0.0/16