-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (38 loc) · 1.08 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
version: "3.9"
services:
nginx:
image: "nginx: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"
mariadb:
image: "mariadb:10.7.3"
restart: always
working_dir: /app
volumes:
- ".:/app"
- "./mariadb/data:/var/lib/mysql"
- "./mariadb/logs:/var/log/mysql"
- "./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"