forked from pablokbs/peladonerd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
71 lines (66 loc) · 1.68 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
version: '3'
services:
nginx-proxy:
image: jwilder/nginx-proxy:1.0.1-alpine
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- certs:/etc/nginx/certs:ro
- ./nginx/custom.conf:/etc/nginx/conf.d/nginx_custom.conf
- confd:/etc/nginx/conf.d
- vhostd:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
labels:
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion:2.2.1
restart: always
volumes:
- certs:/etc/nginx/certs:rw
- confd:/etc/nginx/conf.d
- vhostd:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/var/run/docker.sock:ro
db:
restart: always
image: postgres:14-alpine
shm_size: 256mb
healthcheck:
test: ['CMD', 'pg_isready', '-U', 'postgres']
volumes:
- ./postgres14:/var/lib/postgresql/data
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_PASSWORD=xxxxxxx
- POSTGRES_USER=mastodon
- POSTGRES_DB=mastodon_production
redis:
restart: always
image: redis:7-alpine
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
volumes:
- ./redis:/data
web:
image: lscr.io/linuxserver/mastodon:4.0.2
restart: unless-stopped
env_file: .env.production
environment:
- VIRTUAL_HOST=mastodon.ejemplo.com
- LETSENCRYPT_HOST=mastodon.ejemplo.com
expose:
- '80'
depends_on:
- db
- redis
volumes:
- ./mastodon/config:/config
volumes:
certs:
confd:
vhostd:
html: