-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (55 loc) · 1.87 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
services:
server:
build:
context: .
args:
SERVER_NAME: ${SERVER_NAME}
APT_PACKAGES: ${APT_PACKAGES}
container_name: "${PROJECT_NAME}-server"
restart: always
stdin_open: true
tty: true
ports:
- "127.0.0.1:${HTTP_PORT}:80"
- "127.0.0.1:${HTTPS_PORT}:443"
links:
- database:database
networks:
- default
- board-net
volumes:
- ./classes:/var/www/html/classes:rw
- ./public:/var/www/html/public:rw
- ./views:/var/www/html/views:rw
- ./util:/var/www/html/util:rw
- ./loader.php:/var/www/html/loader.php:rw
- .config.json:/var/www/html/.config.json
- ./docker/apache/${SERVER_NAME}.conf:/etc/apache2/sites-available/${SERVER_NAME}.conf
- ./docker/logs/error.log:/var/log/apache2/error.log
- ./docker/logs/access.log:/var/log/apache2/other_vhosts_access.log
- ./docker/logs/debug.txt:/var/www/html/debug.txt
- ./docker/php/board.ini:/etc/php/7.4/apache2/conf.d/board.ini
- ./docker/ssl/${SERVER_NAME}.key:/etc/apache2/ssl/${SERVER_NAME}.key
- ./docker/ssl/${SERVER_NAME}.crt:/etc/apache2/ssl/${SERVER_NAME}.crt
- ./docker/volumes/cache:/tmp/myCache # lol
- ./docker/volumes/demos:/var/www/html/demos
- ./docker/volumes/sessions:/var/www/html/sessions
database:
image: mariadb:11.4.2
container_name: "${PROJECT_NAME}-db"
restart: unless-stopped
ports:
- "127.0.0.1:${DATABASE_PORT}:3306"
environment:
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
MARIADB_USER: ${MARIADB_USER}
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
MARIADB_DATABASE: ${MARIADB_DATABASE}
MYSQL_TCP_PORT: 3306
volumes:
- ./docker/initdb:/docker-entrypoint-initdb.d
- ./docker/volumes/mysql:/var/lib/mysql
- ./docker/volumes/backups:/backups
networks:
board-net:
name: board-net