-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
34 lines (33 loc) · 951 Bytes
/
docker-compose.yaml
File metadata and controls
34 lines (33 loc) · 951 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.6"
services:
app:
build:
context: resources
dockerfile: Dockerfile
restart: 'unless-stopped'
ports:
- "8080:80"
volumes:
- ./code:/root:cached
environment:
- DB_HOST=mariadb
- DB_USER=root
- DB_PASS=root
- DB_NAME=ouvrages
mariadb:
image: mariadb:10.3
restart: 'unless-stopped'
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=ouvrages
volumes:
- ./resources:/docker-entrypoint-initdb.d:ro
composer:
build:
context: resources
dockerfile: composer.Dockerfile
restart: 'no'
command: composer install --prefer-source --no-plugins --optimize-autoloader --classmap-authoritative
volumes:
- ./code:/root:cached
- ~/.composer:/root/.composer:ro