-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
46 lines (41 loc) · 1.13 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
45
46
version: '3.5'
services:
mariadb:
image: mariadb:10.11
ports:
- "9906:3306"
volumes:
- mariadb:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${DATABASE_PASSWORD:-password}
MYSQL_DATABASE: ${DATABASE_NAME:-app}
restart: unless-stopped
mariadb-test:
image: mariadb:10.11
ports:
- "9907:3306"
environment:
MYSQL_ROOT_PASSWORD: ${DATABASE_PASSWORD:-password}
MYSQL_DATABASE: ${DATABASE_NAME:-app_test}
restart: unless-stopped
nginx:
image: nginx:stable-alpine
volumes:
- ./:/app
- ./docker/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
ports:
- "8012:80"
links:
- php
php:
build: docker/php
links:
- mariadb
- mariadb-test
volumes:
- ./:/app
- ./docker/php/conf.d/php.ini:/usr/local/etc/php/conf.d/php.ini
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
mariadb: { }