-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathdocker-compose.yaml
47 lines (45 loc) · 941 Bytes
/
docker-compose.yaml
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
---
services:
db:
restart: always
image: postgres
ports:
- "5432:5432"
environment:
- POSTGRES_USER=mastodon
- POSTGRES_PASSWORD=mastodon
- POSTGRES_DB=mastodon
- POSTGRES_HOST_AUTH_METHOD=trust
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
redis:
restart: always
image: redis
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
mastodon:
restart: always
image: neetshin/mastodon-dev:4.3.0
ports:
- "3000:3000"
- "4000:4000"
depends_on:
- db
- redis
healthcheck:
test:
[
"CMD-SHELL",
"wget -q --spider --proxy=off localhost:3000/health || exit 1",
]
env_file:
- .env.test
environment:
- RAILS_ENV=development
command: >
/bin/bash -c "
bundle exec rails db:setup &&
foreman start
"