forked from rafalp/misago_docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml.original.bak
111 lines (103 loc) · 2.45 KB
/
docker-compose.yaml.original.bak
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
version: '3.0'
services:
nginx-proxy:
build: nginx-proxy
restart: always
networks:
- misago
ports:
- "80:80"
- "443:443"
environment:
- ENABLE_IPV6=true
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
volumes:
- nginx-certs:/etc/nginx/certs
- nginx-html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./misago/media:/misago/media:z
- ./misago/static:/misago/static:z
- ./config/vhost.d:/etc/nginx/vhost.d:z
- ./logs/nginx:/var/log/nginx:z
nginx-lets-encrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
restart: always
networks:
- misago
depends_on:
- nginx-proxy
volumes:
- nginx-certs:/etc/nginx/certs
- nginx-html:/usr/share/nginx/html
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./config/vhost.d:/etc/nginx/vhost.d:z
postgres:
image: postgres:10
restart: unless-stopped
networks:
- misago
env_file:
- ./config/postgres.env
volumes:
- misago-database:/var/lib/postgresql/data
redis:
image: redis:5
restart: unless-stopped
networks:
- misago
volumes:
- misago-redis:/data
misago:
build: misago
restart: unless-stopped
networks:
misago:
aliases:
- misago
environment:
- POSTGRES_HOST=postgres
- SSL_POLICY=Mozilla-Modern
- VIRTUAL_PROTO=uwsgi
env_file:
- ./config/misago.env
- ./config/postgres.env
depends_on:
- nginx-lets-encrypt
- postgres
- redis
volumes:
- ./misago/media:/misago/media:z
- ./misago/static:/misago/static:z
- ./misago/avatargallery:/misago/avatargallery:ro
- ./misago/theme:/misago/theme:ro
- ./backups:/misago/backups:Z
- ./logs:/misago/logs:z
misago-celery:
build: misago
command: celery -A misagodocker worker --loglevel=info
restart: unless-stopped
networks:
misago:
aliases:
- misago
environment:
- POSTGRES_HOST=postgres
env_file:
- ./config/misago.env
- ./config/postgres.env
depends_on:
- postgres
- redis
volumes:
- ./misago/media:/misago/media:z
- ./misago/static:/misago/static:z
- ./misago/theme:/misago/theme:ro
- ./logs:/misago/logs:z
networks:
misago:
volumes:
nginx-certs:
nginx-html:
misago-database:
misago-redis: