-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (48 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
55 lines (48 loc) · 1.07 KB
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
services:
web:
build:
context: .
target: dev
args:
UID: ${UID:-10001}
GID: ${GID:-10001}
depends_on:
mysql:
condition: service_healthy
ports:
- 8000:8000
stdin_open: true
tty: true
volumes:
- .:/app
mysql:
image: mysql:8.0
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_0900_ai_ci
environment:
MYSQL_ROOT_PASSWORD: "moderator"
MYSQL_USER: "moderator"
MYSQL_PASSWORD: "moderator"
MYSQL_DATABASE: "moderator"
volumes:
- moderatorvolume:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-pmoderator"]
interval: 5s
timeout: 5s
retries: 10
mailcatcher:
image: schickling/mailcatcher
ports:
- 1080:1080
node:
image: node:22-bookworm-slim
working_dir: /app
command: sh -c "npm install && npm run watch"
volumes:
- .:/app:delegated
- node_modules:/app/node_modules
volumes:
moderatorvolume: {}
node_modules: {}