-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
42 lines (42 loc) · 939 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
41
42
version: "3.9"
x-common-variables: &common-variables
services:
nginx:
build: ./nginx/
container_name: nginx-container
ports:
- 8016:8016
- 8017:8017 #xdebug cp,,e
depends_on:
- php
volumes:
- type: bind
source: ./www/html/
target: /var/www/html/
php:
build:
context: .
dockerfile: ./php/arm64.Dockerfile
container_name: php-container
environment:
- DB_HOST=db
- DB_NAME=databasename
- DB_USER=root
- DB_PASS=HbR4oWyjQQWk
depends_on:
- db
volumes:
- type: bind
source: ./www/html/
target: /var/www/html/
db:
image: mariadb:10.3
volumes:
- mysql-data:/var/lib/mysql
environment:
MARIADB_ROOT_PASSWORD: "HbR4oWyjQQWk"
MARIADB_DATABASE: "databasename"
MARIADB_USER: "databaseuser"
MARIADB_PASSWORD: "c5D574XFVEzj"
volumes:
mysql-data: