forked from HiberFile/HiberLink
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 799 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (33 loc) · 799 Bytes
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
version: "2"
services:
database:
image: mariadb:latest
restart: unless-stopped
environment:
MYSQL_USER: onlk
MYSQL_PASSWORD: onlk
MYSQL_DATABASE: onlk
MYSQL_ROOT_PASSWORD: onlkroot
volumes:
- onlkdb:/var/lib/mysql/
onlk:
build:
context: .
restart: unless-stopped
ports:
- "127.0.0.1:8787:80"
depends_on:
- database
volumes:
- ./apache2.conf:/etc/apache2/sites-enabled/000-default.conf
- ./a2err.log:/var/log/apache2/error.log
- ./a2access.log:/var/log/apache2/access.log
- onlk:/var/www/html
environment:
APP_ENV: prod
DATABASE_URL: mysql://onlk:onlk@database:3306/onlk?serverVersion=8&charset=utf8mb4
volumes:
onlk:
external: false
onlkdb:
external: false