forked from mastodon/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
44 lines (41 loc) · 1.01 KB
/
docker-compose.test.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
version: '3'
services:
web:
image: test
restart: always
env_file: .env
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
networks:
- default
healthcheck:
# prettier-ignore
test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:3000/health || exit 1']
ports:
- '3000:3000'
volumes:
- ./public/system:/mastodon/public/system
streaming:
image: test
restart: always
env_file: .env
command: node ./streaming
networks:
- default
healthcheck:
# prettier-ignore
test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:4000/api/v1/streaming/health || exit 1']
ports:
- '4000:4000'
sidekiq:
image: test
restart: always
env_file: .env
command: bundle exec sidekiq
networks:
- default
volumes:
- ./public/system:/mastodon/public/system
healthcheck:
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]
networks:
default: