-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (65 loc) · 1.75 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
services:
# MySQL 5.6 for my work environment
mysql56:
container_name: ${COMPOSE_PROJECT_NAME}-mysql56
image: mysql:5.6.51
restart: unless-stopped
stdin_open: true
tty: true
privileged: true
user: "${DOCKER_USER_UID}:${DOCKER_USER_GID}"
environment:
MYSQL_ROOT_PASSWORD: ${MARIADB_PASS}
ports:
- 127.0.0.1:${MYSQL56_PORT}:3306
volumes:
- ./volumes/mysql56:/var/lib/mysql:rw
command: --default-authentication-plugin=mysql_native_password
ulimits:
nofile:
soft: 262144
hard: 262144
mariadb:
container_name: ${COMPOSE_PROJECT_NAME}-mariadb
image: mariadb:11.5.2-ubi9
restart: unless-stopped
stdin_open: true
tty: true
privileged: true
user: "${DOCKER_USER_UID}:${DOCKER_USER_GID}"
environment:
MYSQL_ROOT_PASSWORD: ${MARIADB_PASS}
ports:
- 0.0.0.0:${MARIADB_PORT}:3306
volumes:
- ./volumes/mariadb:/var/lib/mysql:rw
postgres:
container_name: ${COMPOSE_PROJECT_NAME}-postgres
image: postgres:16.4-alpine3.20
restart: unless-stopped
stdin_open: true
tty: true
privileged: true
user: "${DOCKER_USER_UID}:${DOCKER_USER_GID}"
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASS}
ports:
- 0.0.0.0:${POSTGRES_PORT}:5432
volumes:
- ./volumes/postgres/data:/var/lib/postgresql/data:rw
valkey:
container_name: ${COMPOSE_PROJECT_NAME}-valkey
image: valkey/valkey:7.2.6-alpine3.20
restart: unless-stopped
stdin_open: true
tty: true
privileged: true
user: "${DOCKER_USER_UID}:${DOCKER_USER_GID}"
ports:
- 0.0.0.0:${VALKEY_PORT}:6379
volumes:
- ./volumes/valkey:/data:rw
networks:
default:
name: ${EXTERNAL_NETWORK_NAME}
external: true