This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
forked from InAnimaTe/docker-rtd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (50 loc) · 1.54 KB
/
docker-compose.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
version: "2"
services:
rtd:
hostname: docs.planfront.net
ports:
- "9000:80"
restart: always
build:
context: .
dockerfile: Dockerfile.rtd
volumes:
- ./db:/persistent
- ./readthedocs.org/:/usr/src/app/readthedocs.org/
- ./entrypoint.sh:/usr/src/app/readthedocs.org/entrypoint.sh
- ./local_settings.py.example:/usr/src/app/readthedocs.org/readthedocs/settings/local_settings.py
- ./conf.py.tmpl:/usr/src/app/readthedocs.org/readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl
- ./key/id_rsa:/root/.ssh/id_rsa
- /mnt/rtd/user_builds:/usr/src/app/readthedocs.org/user_builds
environment:
- "TEST_DATA=no"
- "RTD_PRODUCTION_DOMAIN=docs.planfront.net"
- "RTD_SLUMBER_PASSWORD"
extra_hosts:
- "docs.planfront.net:0.0.0.0"
links:
- elasticsearch
- redis
nginx:
restart: always
image: nginx:1.9
ports:
- "80:80"
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf
links:
- rtd
elasticsearch:
restart: always
build:
context: .
dockerfile: Dockerfile.elasticsearch
command: elasticsearch -Des.network.host=0.0.0.0
ports:
- "9200:9200"
- "9300:9300"
redis:
restart: always
image: redis:latest
ports:
- "6379:6379"