-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
62 lines (59 loc) · 1.33 KB
/
compose.yaml
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
services:
node:
image: node:18.16.0-bullseye-slim
container_name: dotfiles-container-node
environment:
LANG: C.UTF-8
TZ: UTC
NODE_MODULE: development
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
networks:
- default
ports:
- 3000:3000
volumes:
- .:/app:cached
init: true
tty: true
db:
# image: mysql:8.0.33-oracle
image: mariadb:10.11.2-jammy
container_name: dotfiles-container-db
environment:
LANG: C.UTF-8
TZ: UTC
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: dbname
MYSQL_USER: user
MYSQL_PASSWORD: password
networks:
- default
ports:
- 3306:3306
volumes:
- ./.devcontainer/db/conf:/etc/mysql/conf.d:ro
- ./.devcontainer/db/init:/docker-entrypoint-initdb.d:ro
# - ./.devcontainer/db/logs:/var/log/mysql:rw
healthcheck:
interval: 10s
retries: 10
test: ["CMD", "mysqladmin", "ping", "-u", "user", "-ppassword"]
timeout: 10s
start_period: 60s
redis:
image: redis:7.0.11-bullseye
container_name: dotfiles-container-redis
environment:
LANG: C.UTF-8
TZ: UTC
networks:
- default
ports:
- 6379:6379
networks:
default:
name: dotfiles-network-default