-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
70 lines (70 loc) · 1.66 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
version: "3.8"
services:
server:
build: ./
environment:
- DB_HOST=${DB_HOST}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- RAILS_ENV=${RAILS_ENV}
- REDIS_URL=${REDIS_URL}
- WARCRAFT_LOGS_KEY=${WARCRAFT_LOGS_KEY}
- BLIZZARD_API_KEY=${BLIZZARD_API_KEY}
- DISCORD_TOKEN=${DISCORD_TOKEN}
links:
- redis
- postgres
ports:
- '3000:3000'
volumes:
- ./:/home/rails
discord_bot:
build: ./
command: 'bin/start_discord_bot'
environment:
- DB_HOST=${DB_HOST}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- RAILS_ENV=${RAILS_ENV}
- REDIS_URL=${REDIS_URL}
- WARCRAFT_LOGS_KEY=${WARCRAFT_LOGS_KEY}
- BLIZZARD_API_KEY=${BLIZZARD_API_KEY}
- DISCORD_TOKEN=${DISCORD_TOKEN}
- APP_URL=${APP_URL}
volumes:
- ./:/home/rails
sidekiq:
build: ./
environment:
- DB_HOST=${DB_HOST}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- RAILS_ENV=${RAILS_ENV}
- REDIS_URL=${REDIS_URL}
- WARCRAFT_LOGS_KEY=${WARCRAFT_LOGS_KEY}
- BLIZZARD_API_KEY=${BLIZZARD_API_KEY}
- DISCORD_TOKEN=${DISCORD_TOKEN}
- APP_URL=${APP_URL}
links:
- redis
- postgres
command: 'sidekiq'
privileged: true
volumes:
- ./:/home/rails
- .//apikey.txt:/usr/local/bin/apikey.txt
postgres:
image: postgres:15.1
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432
redis:
image: redis
ports:
- 6379:6379
volumes:
postgres_data: