forked from floross/docker-readthedocs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml.example
More file actions
58 lines (53 loc) · 1.51 KB
/
docker-compose.yml.example
File metadata and controls
58 lines (53 loc) · 1.51 KB
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
## Uncomment this block to add a pgSQL container for data persistance
## Don't forget to add the link below and to set relevant env vars
#db:
# image: sameersbn/postgresql:9.1-1
# environment:
# - DB_USER=docs
# - DB_PASS=secretpassword
# - DB_NAME=docs
# # These two are required for RTD config:
# - HOST=db
# - PORT=5432
# volumes:
# - ./pgsql:/var/lib/postgresql
## Uncomment this block to add an Elasticsearch container for indexing
## (currently untested)
## Don't forget to add the link below and to set relevant env vars
#elasticsearch:
# image: jfroche/elasticsearch
# volumes:
# - ./es:/var/lib/elasticsearch
# environment:
# # These two are required for RTD config:
# - HOST=elasticsearch
# - PORT=9200
## Uncomment this block to add a Redis container for Celery builds
## Don't forget to add the link below and to set relevant env vars
#redis:
# image: redis
# environment:
# # These three are required for RTD config:
# - HOST=redis
# - PORT=6379
# - DB=0
readthedocs:
image: floross/docker-readthedocs
ports:
- "8000:80"
#links:
#- db
#- elasticsearch
#- redis
volumes:
- ./user_builds:/app/user_builds
environment:
- RTD_PRODUCTION_DOMAIN=example.com
- RTD_USE_SUBDOMAIN=true
- RTD_ALLOW_PRIVATE_REPOS=true
- RTD_ADMIN_PASSWORD=aStrongS3cr37P4ssw0rd
- RTD_SLUMBER_PASSWORD=th150ne5h0u1dB357r0ng700
# Uncomment if using any of these
#- RTD_HAS_DATABASE=true
#- RTD_HAS_ELASTICSEARCH=true
#- RTD_HAS_REDIS=true