-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (34 loc) · 884 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (34 loc) · 884 Bytes
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
version: '3.8'
services:
app:
build:
dockerfile: Dockerfile
context: ./
args:
PHP_IMAGE: ${PHP_IMAGE}
APACHE_USER: ${APACHE_USER:-www-data}
APACHE_U_ID: ${APACHE_U_ID:-33}
APACHE_G_ID: ${APACHE_G_ID:-33}
ports:
- "${LOCAL_APACHE_PORT}:80"
environment:
APP_ENV: ${APP_ENV:-prod}
APACHE_LOG_DIR: /home/www-data
APACHE_RUN_USER: ${APACHE_USER:-www-data}
APACHE_RUN_GROUP: ${APACHE_USER:-www-data}
APACHE_DOCUMENT_ROOT: /var/www/html/public
APACHE_U_ID: ${APACHE_U_ID:-33}
APACHE_G_ID: ${APACHE_G_ID:-33}
db:
image: mariadb:10
environment:
- MARIADB_DATABASE=pma
- MARIADB_USER=user
- MARIADB_PASSWORD=root
- MARIADB_ROOT_PASSWORD=root
volumes:
- type: volume
source: db-vol
target: /var/lib/mysql
volumes:
db-vol: