forked from OS2Forms/os2forms8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
65 lines (59 loc) · 1.42 KB
/
docker-compose.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3.7'
networks:
frontend:
driver: bridge
backend:
driver: bridge
volumes:
mysql:
driver: local
services:
php:
build:
context: ./.docker/php
container_name: php
volumes:
- ./.docker/php/custom.ini:/usr/local/etc/php/conf.d/custom.ini:ro,delegated
- ./:/var/www:delegated
- ./.docker/php/logs:/var/log:delegated
depends_on:
- mariadb
expose:
- "9000"
networks:
- backend
environment:
- APP_ENV=${APP_ENV}
restart: always
mariadb:
image: mariadb:latest
container_name: mariadb
volumes:
- ${DATA_PATH_HOST}/mariadb:/var/lib/mysql:delegated
- ./.docker/mariadb/my.cnf:/etc/mysql/conf.d/my.cnf:ro,delegated
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
expose:
- "3306"
networks:
- backend
restart: always
apache:
image: httpd:latest
container_name: apache
ports:
- "80:80"
volumes:
- ./:/var/www:delegated
- ./.docker/apache/conf/httpd.conf:/usr/local/apache2/conf/httpd.conf
- ./.docker/apache/conf/sites-enabled:/usr/local/apache2/conf/sites-enabled:delegated
- ./.docker/apache/logs:/var/log/apache:delegated
depends_on:
- php
networks:
- backend
- frontend
restart: always