]> cat aescling's git repositories - mastodon.git/blob - docker-compose.yml
Restore hashtag suggestions from local tag history (#11632)
[mastodon.git] / docker-compose.yml
1 version: '3'
2 services:
3
4 db:
5 restart: always
6 image: postgres:9.6-alpine
7 networks:
8 - internal_network
9 healthcheck:
10 test: ["CMD", "pg_isready", "-U", "postgres"]
11 volumes:
12 - ./postgres:/var/lib/postgresql/data
13
14 redis:
15 restart: always
16 image: redis:5.0-alpine
17 networks:
18 - internal_network
19 healthcheck:
20 test: ["CMD", "redis-cli", "ping"]
21 volumes:
22 - ./redis:/data
23
24 # es:
25 # restart: always
26 # image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.3
27 # environment:
28 # - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
29 # networks:
30 # - internal_network
31 # healthcheck:
32 # test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
33 # volumes:
34 # - ./elasticsearch:/usr/share/elasticsearch/data
35
36 web:
37 build: .
38 image: tootsuite/mastodon
39 restart: always
40 env_file: .env.production
41 command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
42 networks:
43 - external_network
44 - internal_network
45 healthcheck:
46 test: ["CMD-SHELL", "wget -q --spider --header 'x-forwarded-proto: https' --proxy=off localhost:3000/api/v1/instance || exit 1"]
47 ports:
48 - "127.0.0.1:3000:3000"
49 depends_on:
50 - db
51 - redis
52 # - es
53 volumes:
54 - ./public/system:/mastodon/public/system
55
56 streaming:
57 build: .
58 image: tootsuite/mastodon
59 restart: always
60 env_file: .env.production
61 command: node ./streaming
62 networks:
63 - external_network
64 - internal_network
65 healthcheck:
66 test: ["CMD-SHELL", "wget -q --spider --header 'x-forwarded-proto: https' --proxy=off localhost:4000/api/v1/streaming/health || exit 1"]
67 ports:
68 - "127.0.0.1:4000:4000"
69 depends_on:
70 - db
71 - redis
72
73 sidekiq:
74 build: .
75 image: tootsuite/mastodon
76 restart: always
77 env_file: .env.production
78 command: bundle exec sidekiq
79 depends_on:
80 - db
81 - redis
82 networks:
83 - external_network
84 - internal_network
85 volumes:
86 - ./public/system:/mastodon/public/system
87 ## Uncomment to enable federation with tor instances along with adding the following ENV variables
88 ## http_proxy=http://privoxy:8118
89 ## ALLOW_ACCESS_TO_HIDDEN_SERVICE=true
90 # tor:
91 # image: sirboops/tor
92 # networks:
93 # - external_network
94 # - internal_network
95 #
96 # privoxy:
97 # image: sirboops/privoxy
98 # volumes:
99 # - ./priv-config:/opt/config
100 # networks:
101 # - external_network
102 # - internal_network
103
104 networks:
105 external_network:
106 internal_network:
107 internal: true
This page took 0.082095 seconds and 4 git commands to generate.