blob: f412c55c5c6fc6f1dd2909b89bb563eec2a7607a (
plain) (
blame)
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
|
version: '2.3'
services:
netdata:
restart: always
image: titpetric/netdata
restart: unless-stopped
cap_add:
- SYS_PTRACE
ports:
- "127.0.0.1:19999:19999"
volumes:
- ./.docker/netdata:/etc/netdata
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
networks:
- external_network
mstdb:
restart: always
image: postgres:9.6-alpine
networks:
- mstdb_network
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./.docker/mastodon/db:/var/lib/postgresql/data
mstredis:
restart: always
image: redis:alpine
networks:
- mstredis_network
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./.docker/mastodon/redis:/data
# mstes:
# restart: always
# image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.3
# environment:
# - bootstrap.memory_lock=true
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
# ulimits:
# memlock:
# soft: -1
# hard: -1
# networks:
# - mstes_network
# volumes:
# - /etc/localtime:/etc/localtime:ro
# - /etc/timezone:/etc/timezone:ro
# - ./.docker/mastodon/es:/usr/share/elasticsearch/data
mstweb:
image: pluralcafe/mastodon:stable
restart: always
env_file: ./.docker/mastodon/.env.production
networks:
- external_network
- mstdb_network
- mstredis_network
ports:
- "127.0.0.1:3000:3000"
- "127.0.0.1:4000:4000"
depends_on:
- mstdb
- mstredis
# - mstes
volumes:
- ./public/system:/mastodon/public/system
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
networks:
external_network:
driver: bridge
enable_ipv6: true
ipam:
driver: default
config:
- subnet: 172.18.0.0/16
- subnet: 2001:19f0:5:46d5::/64
mstdb_network:
internal: true
mstredis_network:
internal: true
|