-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
125 lines (117 loc) · 3.32 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
version: '2'
volumes:
inbox-postgres: {}
inbox-postgres-backup: {}
inbox-django-media: {}
inbox-django-static: {}
services:
clamav:
image: scieloorg/inbox_clamav
ports:
- 3310/tcp
labels:
io.rancher.container.pull_image: always
postgres:
image: scieloorg/inbox_postgres
environment:
- POSTGRES_PASSWORD=your-value-here
- POSTGRES_USER=your-value-here
volumes:
- inbox-postgres:/var/lib/postgresql/data
- inbox-postgres-backup:/backups
ports:
- 5432/tcp
labels:
io.rancher.container.pull_image: always
redis:
image: redis:latest
labels:
io.rancher.container.pull_image: always
nginx:
image: scieloorg/inbox_nginx
volumes:
- inbox-django-static:/static
- inbox-django-media:/media
links:
- django
ports:
- 80
django:
image: scieloorg/inbox
environment:
- CLAMAV_HOST=your-value-here
- CLAMAV_PORT=your-value-here
- DJANGO_ACCOUNT_ALLOW_REGISTRATION=your-value-here
- DJANGO_ADMIN_URL=your-value-here
- DJANGO_ALLOWED_HOSTS=your-value-here
- DJANGO_MAILGUN_API_KEY=your-value-here
- DJANGO_SECRET_KEY=your-value-here
- DJANGO_SECURE_SSL_REDIRECT=your-value-here
- DJANGO_SERVER_EMAIL=your-value-here
- DJANGO_SETTINGS_MODULE=your-value-here
- POSTGRES_PASSWORD=your-value-here
- POSTGRES_USER=your-value-here
ports:
- 5000/tcp
user: django
command:
- /gunicorn.sh
links:
- postgres
volumes:
- inbox-django-media:/app/media
- inbox-django-static:/app/static
labels:
io.rancher.container.pull_image: always
celeryworker:
image: scieloorg/inbox
environment:
- CLAMAV_HOST:your-value-here
- CLAMAV_PORT=your-value-here
- DJANGO_ACCOUNT_ALLOW_REGISTRATION=your-value-here
- DJANGO_ADMIN_URL=your-value-here
- DJANGO_ALLOWED_HOSTS=your-value-here
- DJANGO_MAILGUN_API_KEY=your-value-here
- DJANGO_SECRET_KEY=your-value-here
- DJANGO_SECURE_SSL_REDIRECT=your-value-here
- DJANGO_SERVER_EMAIL=your-value-here
- DJANGO_SETTINGS_MODULE=your-value-here
- POSTGRES_PASSWORD=your-value-here
- POSTGRES_USER=your-value-here
volumes:
- inbox-django-media:/app/media
links:
- clamav:clamav
- redis:redis
- postgres:postgres
user: django
command:
- celery -A inbox.taskapp worker -l INFO
labels:
io.rancher.container.pull_image: always
celerybeat:
image: scieloorg/inbox
environment:
- CLAMAV_HOST:your-value-here
- CLAMAV_PORT=your-value-here
- DJANGO_ACCOUNT_ALLOW_REGISTRATION=your-value-here
- DJANGO_ADMIN_URL=your-value-here
- DJANGO_ALLOWED_HOSTS=your-value-here
- DJANGO_MAILGUN_API_KEY=your-value-here
- DJANGO_SECRET_KEY=your-value-here
- DJANGO_SECURE_SSL_REDIRECT=your-value-here
- DJANGO_SERVER_EMAIL=your-value-here
- DJANGO_SETTINGS_MODULE=your-value-here
- POSTGRES_PASSWORD=your-value-here
- POSTGRES_USER=your-value-here
volumes:
- inbox-django-media:/app/media
links:
- clamav:clamav
- redis:redis
- postgres:postgres
user: django
command:
- celery -A inbox.taskapp beat -l INFO
labels:
io.rancher.container.pull_image: always