-
Notifications
You must be signed in to change notification settings - Fork 84
/
docker-compose.staging.yml
76 lines (73 loc) · 1.7 KB
/
docker-compose.staging.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
---
version: '3.4'
secrets:
DJANGO_DB_NAME:
external: true
DJANGO_DB_USER:
external: true
DJANGO_DB_PASSWORD:
external: true
DKIM_PRIVATE_KEY:
external: true
MYSQL_ROOT_PASSWORD:
external: true
SECRET_KEY:
external: true
TWLIGHT_OAUTH_CONSUMER_KEY:
external: true
TWLIGHT_OAUTH_CONSUMER_SECRET:
external: true
TWLIGHT_EZPROXY_SECRET:
external: true
MATOMO_SITEID:
external: true
MATOMO_AUTH_TOKEN:
external: true
services:
migrate:
image: quay.io/wikipedialibrary/twlight:branch_staging
command: >
bash -c "/app/bin/twlight_backup.sh && /app/bin/virtualenv_migrate.sh"
restart: on-failure
env_file:
- ./conf/staging.twlight.env
volumes:
- type: bind
source: /data/project/staging
target: /app/backup
- type: bind
source: ./media
target: /app/media
depends_on:
- 'db'
secrets:
- DJANGO_DB_NAME
- DJANGO_DB_USER
- DJANGO_DB_PASSWORD
- DKIM_PRIVATE_KEY
- SECRET_KEY
- TWLIGHT_OAUTH_CONSUMER_KEY
- TWLIGHT_OAUTH_CONSUMER_SECRET
- TWLIGHT_EZPROXY_SECRET
twlight:
image: quay.io/wikipedialibrary/twlight:branch_staging
env_file:
- ./conf/staging.twlight.env
volumes:
- type: bind
source: /data/project/staging
target: /app/backup
depends_on:
- 'migrate'
web:
volumes:
- type: volume
target: /var/lib/nginx/cache
- type: bind
source: ./conf/staging.nginx.conf
target: /etc/nginx/conf.d/default.conf
# syslog:
# image: quay.io/wikipedialibrary/twlight_syslog:branch_staging
# secrets:
# - MATOMO_SITEID
# - MATOMO_AUTH_TOKEN