forked from PennyDreadfulMTG/Penny-Dreadful-Tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (49 loc) · 1017 Bytes
/
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
version: '2'
services:
web:
build: .
ports:
- "5000:5000"
- "5001:5001"
depends_on:
- db
- redis
env_file: .env
environment:
- mysql_host=db
- redis_host=redis
volumes:
- ./decksite:/pdm/decksite
- ./logsite:/pdm/logsite
- ./magic:/pdm/magic
- ./maintenance:/pdm/maintenance
- ./find:/pdm/find
- ./shared:/pdm/shared
- ./shared_web:/pdm/shared_web
discordbot:
build: .
command: ["pipenv", "run", "python", "run.py", "--wait-for-db", "discordbot"]
depends_on:
- db
- redis
env_file: .env
environment:
- mysql_host=db
- redis_host=redis
volumes:
- ./discordbot:/pdm/discordbot
- ./magic:/pdm/magic
- ./shared:/pdm/shared
db:
build: docker_dev/mysql
env_file: .env
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=true
ports:
- "3306:3306"
adminer:
image: adminer
ports:
- 8080:8080
redis:
image: redis