-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yaml
42 lines (39 loc) · 1.1 KB
/
docker-compose.dev.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
# This docker-compose.yaml is only used for development of FiveNet
services:
# Database - Used for testing only
mysql:
container_name: mysql
image: docker.io/library/mysql:9.1.0
command:
- "mysqld"
- "--innodb-ft-min-token-size=2"
- "--innodb-ft-max-token-size=40"
- "--default-time-zone=Europe/Berlin"
- '--sql-mode=STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-secret-pw-for-root-user}
MYSQL_USER: ${MYSQL_USER:-fivenet}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-changeme}
MYSQL_DATABASE: ${MYSQL_DATABASE:-fivenet}
volumes:
- mysql:/var/lib/mysql
ports:
- "3306:3306"
network_mode: host
restart: unless-stopped
# Message Queue
nats:
container_name: nats
image: docker.io/library/nats:2.10.22-alpine3.20
command:
- --jetstream
- --user=fivenet
- --pass=fivenet_topsecret
ports:
- "4222:4222"
- "8222:8222"
- "6222:6222"
network_mode: host
restart: unless-stopped
volumes:
mysql: