forked from renatolond/mastodon-twitter-poster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (53 loc) · 1.06 KB
/
docker-compose.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '3'
services:
db:
restart: always
image: postgres:9.6-alpine
environment:
POSTGRES_HOST_AUTH_METHOD: trust
networks:
- internal_network
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
volumes:
- postgresql_data:/var/lib/postgresql/data
redis:
restart: always
image: redis:5.0-alpine
networks:
- internal_network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
volumes:
- redis_data:/data
web:
restart: always
build: .
image: mastodon-twitter-poster
env_file: .env
networks:
- internal_network
- external_network
ports:
- "1081:3000"
depends_on:
- db
sidekiq:
restart: always
build: .
image: mastodon-twitter-poster
env_file: .env
command: bundle exec sidekiq -c 5 -q default
networks:
- internal_network
- external_network
depends_on:
- db
- redis
volumes:
postgresql_data:
redis_data:
networks:
external_network:
internal_network:
internal: true