-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (59 loc) · 1.34 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: "3.0"
services:
app:
build: ./containers/${WEBSERVER}
environment:
- LOG_LEVEL=${APP_LOG_LEVEL}
volumes:
- ./src/app:/var/www/html
- ./logs/php:/var/log/php
- ./logs/app:/log
restart: always
app-cron:
build: ./containers/${WEBSERVER}
environment:
- LOG_LEVEL=${APP_LOG_LEVEL}
volumes:
- ./src/app:/var/www/html
- ./logs/app-cron:/log
command: /entrypoint.sh
restart: always
mysql:
build: ./containers/mariadb
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
ports:
- 3306:3306
volumes:
- ./logs/mysql:/var/log/mysql
- ./data/mysql:/var/lib/mysql
- ./data/backup:/backup
restart: always
nginx:
build: ./containers/nginx
ports:
- 80:80
volumes:
- ./logs/nginx/:/var/log/nginx
- ./src/app:/var/www/html
command: nginx -g "daemon off;"
restart: always
# doc:
# build:
# context: ./doc
# dockerfile: Dockerfile
# volumes:
# - ./logs/doc:/var/log/nginx
# restart: always
mail:
image: mailhog/mailhog
command: ["-smtp-bind-addr", "0.0.0.0:25"]
user: root
expose:
- 25
- 8025
ports:
- 8025:8025