forked from readthedocs/readthedocs.org
-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose-tox.yml
53 lines (49 loc) · 1.18 KB
/
docker-compose-tox.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.4'
services:
py36:
container_name: italia_docs_italia_it_test
build:
context: .
target: docs_italia_it_test
image: italia/docs_italia_it_test:latest
depends_on:
- db
- es
command: bash -c "wait-for-it -s -t 300 db:5432 -- tox -e py36 $TOX_ARGS -- --including-search --create-db $PYTEST_ARGS"
env_file:
- .dockerenv
volumes:
- ".:/app:rw"
- tox:/app/.tox
itresolver:
container_name: italia_docs_italia_it_itresolver
build:
context: .
target: docs_italia_it_test
image: italia/docs_italia_it_test:latest
depends_on:
- db
command: bash -c "wait-for-it -s -t 300 db:5432 -- tox -e itresolver $TOX_ARGS -- --create-db $PYTEST_ARGS"
env_file:
- .dockerenv
volumes:
- ".:/app:rw"
- tox:/app/.tox
db:
image: postgres:10
environment:
- POSTGRES_PASSWORD=docs
- POSTGRES_USER=docs
- POSTGRES_DB=rtd
es:
build:
context: docker/elasticsearch
environment:
- cluster.name=docsitalia
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- 9200:9200
- 9300:9300
volumes:
tox: