This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
97 lines (89 loc) · 1.6 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3.4'
services:
db:
image: postgres:10
volumes:
- postgres:/var/lib/postgresql/data
ports:
- 5432:5432
env_file:
- ./apps/db/.env
api:
build: apps/api
command: bundle exec rails s -b 0.0.0.0
env_file:
- ./apps/api/.env
ports:
- 3000:3000
volumes:
- ./apps/api:/api
- /apps/api/tmp
links:
- db
- redis
- mjml2html
sidekiq:
build: apps/api
command: bundle exec sidekiq -q default -q mailers
env_file:
- ./apps/api/.env
ports:
- 3001:3001
volumes:
- ./apps/api:/api
- /apps/api/tmp
links:
- db
- redis
- mjml2html
- discord
www:
build:
context: apps/www
target: dev
environment:
- HOST=0.0.0.0
- PORT=8080
env_file:
- ./apps/www/.env
ports:
- 8080:8080
volumes:
- ./apps/www:/www
links:
- api
discord:
build: apps/discord-bot
command: npm run dev
environment:
- HOST=0.0.0.0
- PORT=9090
env_file:
- ./apps/discord-bot/.env
ports:
- 9090:9090
volumes:
- ./apps/discord-bot:/www
mjml2html:
image: williamdasilva/mjml2html
environment:
- PORT=8082
ports:
- 8082:8082
redis:
build: apps/redis
environment:
- HOST=0.0.0.0
ports:
- 6379:6379
volumes:
- redis:/data
- ./apps/redis/redis.conf:/usr/local/etc/redis/redis.conf
mailcatcher:
image: dockage/mailcatcher:0.6.5
ports:
- 1080:1080
- 1025:1025
volumes:
postgres:
redis: