forked from Smile-SA/gdpr-dump
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
32 lines (30 loc) · 789 Bytes
/
compose.yaml
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
services:
app:
build:
context: 'docker/php-cli'
args:
APP_UID: '${UID}'
APP_GID: '${GID}'
environment:
COMPOSER_AUTH: '${COMPOSER_AUTH:-}'
DB_HOST: 'db'
depends_on:
- 'db'
volumes:
- '.:/var/www/html:rw,cached'
- 'composer:/home/www/.composer'
db:
image: 'mariadb:10.6'
ports:
- 3306
environment:
MYSQL_ROOT_PASSWORD: '!root'
MYSQL_DATABASE: 'tests'
MYSQL_USER: 'tests'
MYSQL_PASSWORD: 'tests'
volumes:
- 'db-data:/var/lib/mysql'
- './docker/db-data:/docker-entrypoint-initdb.d'
volumes:
composer:
db-data: