-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdocker-compose.yml
103 lines (96 loc) · 2.13 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
98
99
100
101
102
103
services:
decksite:
build: .
command:
- decksite
ports:
- "80:80"
depends_on:
- db
- redis
env_file: .env
environment:
- mysql_host=db
- redis_host=redis
volumes:
- ./decksite:/pdm/decksite
- ./find:/pdm/find
- ./images:/pdm/images
- ./magic:/pdm/magic
- ./maintenance:/pdm/maintenance
- ./shared:/pdm/shared
- ./shared_web:/pdm/shared_web
- node_modules:/pdm/node_modules
- compiled_js:/pdm/shared_web/static/dist
logsite:
build: .
command:
- logsite
ports:
- "5001:5001"
depends_on:
- db
- redis
env_file: .env
environment:
- mysql_host=db
- redis_host=redis
volumes:
- ./logsite_migrations:/pdm/logsite_migrations
- ./logsite:/pdm/logsite
- ./shared:/pdm/shared
- ./shared_web:/pdm/shared_web
- node_modules:/pdm/node_modules
- compiled_js:/pdm/shared_web/static/dist
assets:
image: node:22-alpine
working_dir: /pdm
command:
- sh
- -c
- |
npm install
npm run babel
npm run watch
volumes:
- ./decksite/webpack.config.js:/pdm/decksite/webpack.config.js
- ./package.json:/pdm/package.json
- ./package-lock.json:/pdm/package-lock.json
- ./shared_web:/pdm/shared_web
- node_modules:/pdm/node_modules
- compiled_js:/pdm/shared_web/static/dist
# 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
volumes:
- db_data:/var/lib/mysql
ports:
- "3306:3306"
adminer:
image: adminer
ports:
- 8080:8080
redis:
image: redis
ports:
- 6379:6379
volumes:
db_data:
node_modules:
compiled_js: