-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (57 loc) · 1.25 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
version: "3.8"
#
# Services definitions
#
services:
app:
image: kooldev/php:8.1-nginx
container_name: artisan_nginx
ports:
- "${KOOL_APP_PORT:-80}:80"
environment:
ASUSER: "${KOOL_ASUSER:-0}"
UID: "${UID:-0}"
volumes:
- .:/app:delegated
networks:
- kool_local
- kool_global
database:
image: mysql:8.0
platform: linux/x86_64
container_name: artisan_mysql
command: --default-authentication-plugin=mysql_native_password
ports:
- "${KOOL_DATABASE_PORT:-3306}:3306"
environment:
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
MYSQL_DATABASE: "${DB_DATABASE}"
MYSQL_USER: "${DB_USERNAME}"
MYSQL_PASSWORD: "${DB_PASSWORD}"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
volumes:
- database:/var/lib/mysql:delegated
networks:
- kool_local
healthcheck:
test: ["CMD", "mysqladmin", "ping"]
cache:
image: redis:6-alpine
container_name: artisan_redis
volumes:
- cache:/data:delegated
networks:
- kool_local
healthcheck:
test: ["CMD", "redis-cli", "ping"]
#
# Networks definitions
#
networks:
kool_local:
kool_global:
external: true
name: "${KOOL_GLOBAL_NETWORK:-kool_global}"
volumes:
database:
cache: