forked from WikipediaLibrary/TWLight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.override.yml
48 lines (45 loc) · 1.17 KB
/
docker-compose.override.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
---
version: '3.2'
# Local environment should mount plaintext files as secrets
secrets:
DJANGO_DB_NAME:
file: ./secrets/DJANGO_DB_NAME
DJANGO_DB_USER:
file: ./secrets/DJANGO_DB_USER
DJANGO_DB_PASSWORD:
file: ./secrets/DJANGO_DB_PASSWORD
MYSQL_ROOT_PASSWORD:
file: ./secrets/MYSQL_ROOT_PASSWORD
SECRET_KEY:
file: ./secrets/SECRET_KEY
TWLIGHT_OAUTH_CONSUMER_KEY:
file: ./secrets/TWLIGHT_OAUTH_CONSUMER_KEY
TWLIGHT_OAUTH_CONSUMER_SECRET:
file: ./secrets/TWLIGHT_OAUTH_CONSUMER_SECRET
TWLIGHT_EZPROXY_SECRET:
file: ./secrets/TWLIGHT_EZPROXY_SECRET
services:
db:
# Local environment should accomodate a variety of host OSes
volumes:
- type: bind
source: ./conf/db/local.d
target: /etc/mysql/conf.d
ports:
- "3306:3306"
twlight:
image: wikipedialibrary/twlight:local
env_file:
- ./conf/local.twlight.env
# Local environment should mount things from the code directory
volumes:
- type: bind
source: .
target: /app
web:
volumes:
- type: bind
source: ./conf/local.nginx.conf
target: /etc/nginx/conf.d/default.conf
ports:
- "80:80"