forked from patrickallaert/php-sample-application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (37 loc) · 957 Bytes
/
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.8'
services:
web:
build:
context: .
dockerfile: Dockerfile.app
ports:
- "8080:80"
# volumes:
# - ./web:/var/www/html
# - ./dic:/var/www/html/dic
# - ./config-dev:/var/www/html/config
# - ./logs:/var/www/html/logs
# - ./src:/var/www/html/src
# #- ./Makefile:/var/www/html/Makefile
# #- ./composer.json:/var/www/html/composer.json
# - ./bootstrap.php:/var/www/html/bootstrap.php
# - ./autoloader.php:/var/www/html/autoloader.php
# - ./error_handler.php:/var/www/html/error_handler.php
depends_on:
- db
networks:
- mynetwork
db:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: samplepass
MYSQL_DATABASE: sample
MYSQL_USER: sampleuser
MYSQL_PASSWORD: samplepass
volumes:
- ./sql:/docker-entrypoint-initdb.d
networks:
- mynetwork
networks:
mynetwork: