-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
97 lines (89 loc) · 1.82 KB
/
docker-compose.yml
File metadata and controls
97 lines (89 loc) · 1.82 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
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
version: "3"
services:
# PostgreSQL database for authentication, storing compendium content,
# etc.
database:
image: postgres:12.2-alpine
container_name: tec-database
env_file:
- .env
volumes:
- site-db:/var/lib/postgresql/data:rw
ports:
- "5432:5432"
networks:
- tec-net
# Apache Solr instance for text search
search:
build:
context: docker/solr/
args:
POSTGRES_JDBC_VERSION: "42.2.11"
image: tec-solr:latest
container_name: tec-search
depends_on:
- database
env_file:
- .env
#volumes:
# - solrdata:/var/solr:rw
networks:
- tec-net
command:
- solr-precreate
- compendium
# Webserver
gunicorn:
build:
context: .
dockerfile: docker/gunicorn/Dockerfile
image: tec-gunicorn:latest
container_name: tec-gunicorn
user: www-data
depends_on:
- database
- search
environment:
DATABASE_ENGINE: "postgres"
env_file:
- .env
volumes:
- staticfiles:/var/www/static:rw
- ./src:/var/www/src:ro
ports:
- "5000:5000"
networks:
- tec-net
# Proxyserver
proxy:
build:
context: docker/nginx/
image: tec-proxy:latest
container_name: tec-proxy
environment:
SERVER_NAME: encryptioncompendium.org
ports:
- "80:80"
- "443:443"
volumes:
# Shared volume with the gunicorn server that allows us to
# serve static files.
- staticfiles:/opt/services/tec-gunicorn/static:ro
- letsencrypt:/tls:rw
depends_on:
- gunicorn
networks:
- tec-net
# Webserver cache
cache:
image: memcached:1.6-alpine
container_name: tec-cache
networks:
- tec-net
networks:
tec-net:
volumes:
site-db:
solrdata:
staticfiles:
letsencrypt: