-
Notifications
You must be signed in to change notification settings - Fork 288
/
docker-compose.travis.yml
102 lines (95 loc) · 2.69 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
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
# docker-compose for Pootle development.
#
# Note: Requires docker-compose 1.10+.
version: "2.4"
services:
elasticsearch:
extends:
file: docker-compose.yml
service: elasticsearch
tmpfs: /usr/share/elasticsearch/data
postgres:
extends:
file: docker-compose.yml
service: postgres
volumes:
- type: tmpfs
target: /var/lib/postgresql/data
redis:
extends:
file: docker-compose.yml
service: redis
volumes:
- type: tmpfs
target: /data
mariadb:
extends:
file: docker-compose.dev.yml
service: mariadb
volumes:
- type: tmpfs
target: /var/lib/mysql
travis-mariadb:
image: translatetravis2/pootle:travis-mariadb
environment:
- LOCAL_USER_ID=${LOCAL_USER_ID:-''}
- CI=${CI:-''}
- TRAVIS_BUILD_ID=${TRAVIS_BUILD_ID:-''}
- TRAVIS=${TRAVIS:-''}
- TRAVIS_BRANCH=${TRAVIS_BRANCH:-''}
- TRAVIS_JOB_NUMBER=${TRAVIS_JOB_NUMBER:-''}
- TRAVIS_PULL_REQUEST=${TRAVIS_PULL_REQUEST:-''}
- TRAVIS_JOB_ID=${TRAVIS_JOB_ID:-''}
- TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG:-''}
- TRAVIS_COMMIT=${TRAVIS_COMMIT:-''}
depends_on:
- mariadb
- redis
- elasticsearch
command: ["/app/src/pootle/docker/bin/run_in_container", "server"]
ports:
- "8000:8000"
volumes:
- .:/app/src/pootle
travis-postgres:
image: translatetravis2/pootle:travis-postgres
environment:
- LOCAL_USER_ID=${LOCAL_USER_ID:-''}
- CI=${CI:-''}
- TRAVIS_BUILD_ID=${TRAVIS_BUILD_ID:-''}
- TRAVIS=${TRAVIS:-''}
- TRAVIS_BRANCH=${TRAVIS_BRANCH:-''}
- TRAVIS_JOB_NUMBER=${TRAVIS_JOB_NUMBER:-''}
- TRAVIS_PULL_REQUEST=${TRAVIS_PULL_REQUEST:-''}
- TRAVIS_JOB_ID=${TRAVIS_JOB_ID:-''}
- TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG:-''}
- TRAVIS_COMMIT=${TRAVIS_COMMIT:-''}
depends_on:
- postgres
- redis
- elasticsearch
command: ["/app/src/pootle/docker/bin/run_in_container", "server"]
ports:
- "8000:8000"
volumes:
- .:/app/src/pootle
travis-sqlite:
image: translatetravis2/pootle:travis-sqlite
environment:
- LOCAL_USER_ID=${LOCAL_USER_ID:-''}
- CI=${CI:-''}
- TRAVIS_BUILD_ID=${TRAVIS_BUILD_ID:-''}
- TRAVIS=${TRAVIS:-''}
- TRAVIS_BRANCH=${TRAVIS_BRANCH:-''}
- TRAVIS_JOB_NUMBER=${TRAVIS_JOB_NUMBER:-''}
- TRAVIS_PULL_REQUEST=${TRAVIS_PULL_REQUEST:-''}
- TRAVIS_JOB_ID=${TRAVIS_JOB_ID:-''}
- TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG:-''}
- TRAVIS_COMMIT=${TRAVIS_COMMIT:-''}
depends_on:
- redis
- elasticsearch
ports:
- "8000:8000"
volumes:
- .:/app/src/pootle