-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
47 lines (43 loc) · 1.11 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
47
---
version: "3.3"
services:
nginx:
image: nginx:stable-alpine
container_name: bnetdocs-nginx
restart: always
depends_on:
- mariadb
- php
volumes:
- ./etc/nginx/conf.d/nginx-vhost-docker.conf:/etc/nginx/conf.d/default.conf
- .:/var/www/html
- /usr/share/GeoIP/GeoLite2-City.mmdb:/usr/share/GeoIP/GeoLite2-City.mmdb
ports:
- "8080:80"
php:
build: './etc/docker/php'
container_name: bnetdocs-php
restart: always
volumes:
- mariadb-vol-1:/var/lib/mysql/:Z
- .:/var/www/html
- /usr/share/GeoIP/GeoLite2-City.mmdb:/usr/share/GeoIP/GeoLite2-City.mmdb
expose:
- "9000"
mariadb:
image: mariadb:10.7
container_name: bnetdocs-mariadb
restart: always
volumes:
- mariadb-vol-1:/var/lib/mysql/:Z
expose:
- "3306"
environment:
- MARIADB_DATABASE=bnetdocs_docker
- MARIADB_ROOT_PASSWORD=bnetdocs_docker_rootpw420
- MARIADB_USER=bnetdocs_docker
- MARIADB_PASSWORD=bnetdocs_docker
- MARIADB_AUTO_UPGRADE=yes
- MARIADB_DISABLE_UPGRADE_BACKUP=yes
volumes:
mariadb-vol-1: