-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
44 lines (44 loc) · 1.19 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
41
42
43
44
services:
db:
image: mariadb:10.3
container_name: ladecadanse_db
environment:
MYSQL_DATABASE: ladecadanse
MYSQL_ROOT_PASSWORD: dev
MYSQL_USER: dev
MYSQL_PASSWORD: dev
volumes:
- ${PWD}/resources/ladecadanse.sql:/docker-entrypoint-initdb.d/001_ladecadanse.sql
- ${PWD}/docker/env/create-admin.sql:/docker-entrypoint-initdb.d/002_create-admin.sql
ports:
- "127.0.0.1:9906:3306"
networks:
- ladecadanse_net
install-dep:
build:
dockerfile: ./docker/php/Dockerfile
container_name: ladecadanse_install_dep
command: ./install_dep.sh
volumes:
- ${PWD}:/var/www/html/
web:
build:
dockerfile: ./docker/php/Dockerfile
container_name: ladecadanse_php
depends_on:
db:
condition: service_started
install-dep:
condition: service_completed_successfully
volumes:
- ${PWD}:/var/www/html/
- ${PWD}/docker/apache/ladecadanse.conf:/etc/apache2/sites-enabled/000-default.conf
- ${PWD}/docker/env/env.php:/var/www/html/app/env.php
ports:
- "127.0.0.1:7777:80"
networks:
- ladecadanse_net
stdin_open: true
tty: true
networks:
ladecadanse_net: