-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
50 lines (45 loc) · 1.2 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: '3'
volumes:
certs:
conf:
data:
html:
vhost.d:
services:
db:
image: postgis/postgis:12-master
container_name: culturestake-db
env_file:
- .env
volumes:
- ./db/init-dbs.sh:/docker-entrypoint-initdb.d/init-dbs.sh
- data:/var/lib/postgresql/data
redis:
image: redis:6.0.1-alpine
container_name: culturestake-redis
nginx:
image: nginx:1.19.1-alpine
container_name: culturestake-nginx-proxy
restart: always
depends_on:
- db
ports:
- "80:80"
volumes:
- certs:/etc/nginx/certs:ro
- conf:/etc/nginx/conf.d
- html:/usr/share/nginx/html
- vhost.d:/etc/nginx/vhost.d
- ./nginx-proxy/default:/etc/nginx/vhost.d/default
gen:
image: jwilder/docker-gen:0.7.5
container_name: culturestake-nginx-gen
depends_on:
- nginx
volumes:
- certs:/etc/nginx/certs:ro
- conf:/etc/nginx/conf.d
- vhost.d:/etc/nginx/vhost.d
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx-proxy/nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
command: -notify-sighup culturestake-nginx-proxy -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf