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