-
Notifications
You must be signed in to change notification settings - Fork 31
/
docker-compose.yaml
120 lines (112 loc) · 3.06 KB
/
docker-compose.yaml
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
112
113
114
115
116
117
118
119
120
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:2.2
restart: always
networks:
- misago
depends_on:
- nginx-proxy
volumes:
- lets-encrypt-acme:/etc/acme.sh
- 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-15:
image: postgres:15
restart: unless-stopped
networks:
- misago
environment:
- POSTGRES_DB=${MISAGO_POSTGRES_DB:-misagodb}
- POSTGRES_USER=${MISAGO_POSTGRES_USER:-misagodb}
- POSTGRES_PASSWORD=${MISAGO_POSTGRES_PASSWORD:-misagodbpassword}
- ENABLE_IPV6=true
volumes:
- misago-postgres-15:/var/lib/postgresql/data
redis-6:
image: redis:6
restart: unless-stopped
networks:
- misago
volumes:
- misago-redis-6:/data
misago:
build: misago
restart: unless-stopped
networks:
misago:
aliases:
- misago
environment:
- POSTGRES_HOST=${MISAGO_POSTGRES_HOST:-postgres-15}
- POSTGRES_DB=${MISAGO_POSTGRES_DB:-misagodb}
- POSTGRES_USER=${MISAGO_POSTGRES_USER:-misagodb}
- POSTGRES_PASSWORD=${MISAGO_POSTGRES_PASSWORD:-misagodbpassword}
- SSL_POLICY=Mozilla-Modern
- VIRTUAL_PROTO=uwsgi
env_file:
- ./config/misago.env
depends_on:
- nginx-lets-encrypt
- postgres-15
- redis-6
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
celery-worker:
build: misago
command: celery -A misagodocker worker --loglevel=info
restart: unless-stopped
networks:
misago:
aliases:
- misago
environment:
- POSTGRES_HOST=${MISAGO_POSTGRES_HOST:-postgres-15}
- POSTGRES_DB=${MISAGO_POSTGRES_DB:-misagodb}
- POSTGRES_USER=${MISAGO_POSTGRES_USER:-misagodb}
- POSTGRES_PASSWORD=${MISAGO_POSTGRES_PASSWORD:-misagodbpassword}
env_file:
- ./config/misago.env
depends_on:
- postgres-15
- redis-6
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:
lets-encrypt-acme:
misago-postgres-15:
misago-redis-6: