-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (51 loc) · 1.36 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (51 loc) · 1.36 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
version: "3"
volumes:
mysql:
driver: local
dev_db:
driver: local
services:
dev_db:
container_name: dev_db
image: mariadb:10.5
environment:
- MYSQL_ROOT_PASSWORD=${DATABASE_PASSWORD}
- MYSQL_USER=${DATABASE_USER}
- MYSQL_PASSWORD=${DATABASE_PASSWORD}
- MYSQL_DATABASE=${DATABASE_DATABASE}
command: ["--max-allowed-packet=128M", "--innodb-log-file-size=64M"]
ports:
- "127.0.0.1:${DATABASE_PORT}:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-u", "root", "--password=${DATABASE_PASSWORD}"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- dev_db:/var/lib/mysql
accessicity:
image: ghcr.io/passidel/accessicity:${ACCESS_VERSION}
build:
context: .
ports:
- "127.0.0.1:3000:3000"
depends_on:
- mariadb
env_file:
- .env
mariadb:
image: mariadb:10.5
restart: always
environment:
- MYSQL_ROOT_PASSWORD=${DATABASE_PASSWORD}
- MYSQL_USER=${DATABASE_USER}
- MYSQL_PASSWORD=${DATABASE_PASSWORD}
- MYSQL_DATABASE=${DATABASE_DATABASE}
command: ["--max-allowed-packet=128M", "--innodb-log-file-size=64M"]
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-u", "root", "--password=${DATABASE_PASSWORD}"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- mysql:/var/lib/mysql