forked from WikipediaLibrary/TWLight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.travis.yml
53 lines (50 loc) · 1.39 KB
/
docker-compose.travis.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
---
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 accommodate a variety of host OSes
volumes:
- type: bind
source: ./conf/db/local.d
target: /etc/mysql/conf.d
twlight:
image: wikipedialibrary/twlight:${BRANCH_TAG}
build:
cache_from:
- wikipedialibrary/twlight_base:${BRANCH_TAG}
- wikipedialibrary/twlight_build:${BRANCH_TAG}
- wikipedialibrary/twlight:${BRANCH_TAG}
env_file:
- ./conf/travis.twlight.env
environment:
- TRAVIS_JOB_ID
- TRAVIS_BRANCH
- COVERALLS_REPO_TOKEN
# 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