forked from allegro/ralph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.octodocker.yml
63 lines (57 loc) · 1.14 KB
/
.octodocker.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
provisioning_command: /bin/bash -c "/root/init.sh ; ralph demodata"
provisioning_service: web
compose:
db:
image: mysql:5.6
environment:
MYSQL_DATABASE: ralph_ng
MYSQL_ROOT_PASSWORD: ralph_ng
MYSQL_USER: ralph_ng
MYSQL_PASSWORD: ralph_ng
volumes_from:
- data
web:
build: .
restart: always
ports:
- "8000"
volumes_from:
- data
links:
- db:db
- redis:redis
env_file:
- ./contrib/ralph.env
environment:
- DJANGO_SETTINGS_MODULE=ralph.settings.prod
command: gunicorn -w 4 -b 0.0.0.0:8000 -t 300 ralph.wsgi
nginx:
image: nginx
restart: always
ports:
- "80"
links:
- web:web
volumes:
- ./contrib/ralph.conf.nginx:/etc/nginx/conf.d/default.conf
volumes_from:
- web
data:
image: mysql:5.6
volumes:
- /opt/static
- /opt/media
- /var/lib/mysql
command: /bin/true
redis:
image: redis:3.0
restart: always
ports:
- "6379"
inkpy:
image: ar4s/inkpy_jinja:latest
restart: always
links:
- redis:redis
env_file:
- ./contrib/ralph.env