-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
100 lines (92 loc) · 2.5 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
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
version: '3'
services:
main:
image: puffinrocks/mastodon:latest
command: bundle exec rails server -p 3000 -b '0.0.0.0'
ports:
- 3000
depends_on:
- db
- redis
volumes:
- main_assets:/mastodon/public/assets
- main_packs:/mastodon/public/packs
- main_system:/mastodon/public/system
- main_private:/mastodon/private
env_file: env
environment:
- VIRTUAL_HOST
- VIRTUAL_PORT=3000
- LETSENCRYPT_HOST
- LETSENCRYPT_EMAIL
- LETSENCRYPT_TEST
- LOCAL_DOMAIN=${VIRTUAL_HOST}
- SMTP_FROM_ADDRESS=mastodon@${VIRTUAL_HOST}
- STREAMING_API_BASE_URL=wss://streaming.${VIRTUAL_HOST}
networks:
- front
- back
- default
streaming:
image: puffinrocks/mastodon:latest
command: npm run start
ports:
- 4000
depends_on:
- db
- redis
volumes:
- main_private:/mastodon/private
env_file: env
environment:
- VIRTUAL_HOST=${VIRTUAL_HOST_STREAMING}
- VIRTUAL_PORT=4000
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST_STREAMING}
- LETSENCRYPT_EMAIL
- LETSENCRYPT_TEST
- LOCAL_HTTPS=true
- LOCAL_DOMAIN=${VIRTUAL_HOST}
- SMTP_FROM_ADDRESS=mastodon@${VIRTUAL_HOST}
networks:
- front
- back
- default
sidekiq:
image: puffinrocks/mastodon:latest
command: bundle exec sidekiq -q default -q mailers -q pull -q push
depends_on:
- db
- redis
volumes:
- main_system:/mastodon/public/system
- main_private:/mastodon/private
env_file: env
environment:
- LOCAL_HTTPS=true
- LOCAL_DOMAIN=${VIRTUAL_HOST}
- SMTP_FROM_ADDRESS=mastodon@${VIRTUAL_HOST}
networks:
- back
- default
db:
image: postgres:alpine
volumes:
- db_data:/var/lib/postgresql/data
redis:
image: redis:alpine
volumes:
- redis_data:/data
volumes:
main_assets:
main_packs:
main_system:
main_private:
db_data:
redis_data:
networks:
front:
external:
name: "puffin_front"
back:
external:
name: "puffin_back"