-
Notifications
You must be signed in to change notification settings - Fork 20
/
compose.yml
46 lines (43 loc) · 1.26 KB
/
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
services:
nginx:
image: "nginx:1.27.2-alpine"
restart: always
working_dir: /app
links:
- php-fpm
volumes:
- ".:/app"
- "./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf"
ports:
- "80:80"
php-fpm:
build: docker/php-fpm
restart: always
working_dir: /app
links:
- mariadb
volumes:
- ".:/app"
- "./docker/php-fpm/php-overrides.ini:/usr/local/etc/php/conf.d/php-overrides.ini"
environment:
XDEBUG_MODE: "coverage"
redis:
image: "redis:7.4.1-alpine"
environment:
ALLOW_EMPTY_PASSWORD: "yes"
mariadb:
image: "mariadb:11.6.2"
restart: always
working_dir: /app
volumes:
- ".:/app"
- "./docker/mariadb/data:/var/lib/mysql"
- "./docker/mariadb/logs:/var/log/mysql"
- "./docker/mariadb/conf:/etc/mysql"
environment:
MARIADB_ROOT_PASSWORD: "${MARIADB_ROOT_PASSWORD}"
MARIADB_DATABASE: "${MARIADB_DATABASE}"
MARIADB_USER: "${MARIADB_USER}"
MARIADB_PASSWORD: "${MARIADB_PASSWORD}"
ports:
- "3306:3306"