-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (49 loc) · 1.2 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
services:
app:
image: kooldev/node:20
command: ["npm", "run", "prod"]
ports:
- "${BACKEND_PORT:-3000}:${BACKEND_PORT:-3000}"
environment:
ASUSER: "${KOOL_ASUSER:-0}"
UID: "${UID:-0}"
BACKEND_PORT: "${BACKEND_PORT:-3000}"
volumes:
- .:/app:delegated
networks:
- kool_local
- kool_global
database:
image: mysql/mysql-server:8.0
command: --default-authentication-plugin=mysql_native_password
ports:
- "${DATABASE_PORT:-3306}:3306"
environment:
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD-rootpass}"
MYSQL_DATABASE: "${DB_DATABASE-database}"
MYSQL_USER: "${DB_USERNAME-user}"
MYSQL_PASSWORD: "${DB_PASSWORD-pass}"
MYSQL_ALLOW_EMPTY_PASSWORD: 1
volumes:
- database:/var/lib/mysql:delegated
networks:
- kool_local
healthcheck:
test: ["CMD", "mysqladmin", "ping"]
cache:
image: redis:7-alpine
volumes:
- cache:/data:delegated
networks:
- kool_local
healthcheck:
test: ["CMD", "redis-cli", "ping"]
networks:
kool_local:
kool_global:
external: true
name: "${GLOBAL_NETWORK:-kool_global}"
volumes:
database:
cache: