-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
35 lines (31 loc) · 781 Bytes
/
compose.yaml
File metadata and controls
35 lines (31 loc) · 781 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
35
name: ${PROJECT_NAME}
networks:
default:
name: ${NETWORK_NAME}
driver: bridge
services:
server:
container_name: ${PROJECT_NAME}-web
extra_hosts:
host.docker.internal: host-gateway
build:
context: .
restart: no
ports: ["9080:80"]
volumes:
- ../htdocs/:/var/www/html
- ../logs/:/var/www/logs
- ./xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
db:
container_name: ${PROJECT_NAME}-db
image: mariadb
volumes: ["db:/var/lib/mysql:Z"]
restart: no
ports: ["${MARIADB_PORT}:3306"]
environment:
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOTPASSWORD}
- MARIADB_DATABASE=${MARIADB_DATABASE}
- MARIADB_USER=${MARIADB_USER}
- MARIADB_PASSWORD=${MARIADB_PASSWORD}
volumes:
db: