-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (42 loc) · 1.43 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
services:
cloudlog:
image: cloudlog-docker
build:
context: .
dockerfile: Dockerfile
container_name: cloudlog
restart: unless-stopped
# persist html folder when container stops ( TODO make this work better with updated images )
volumes:
- cloudlog-config:/var/www/html/application/config
- cloudlog-backup:/var/www/html/backup
- cloudlog-uploads:/var/www/html/uploads
# depends on can be commented out if using an external database
depends_on:
- db
# change to <external port>:443 when using SSL with cloudlog
ports:
- 8080:80
db:
image: mysql
container_name: cloudlog-mysql
restart: unless-stopped
environment:
# Cloudlog database name
MYSQL_DATABASE: 'db'
# Database username
MYSQL_USER: 'user'
# Database password
MYSQL_PASSWORD: 'password'
# Root Password - DO NOT USE DATABASE ROOT ACCOUNT FOR THE CLOUDLOG SETUP
MYSQL_ROOT_PASSWORD: example
volumes:
- my-db:/var/lib/mysql
# NOTE: use of "mysql_native_password" is not recommended for production: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
# (cloudlog just dosen't work unless you use this less secure method of auth)
command: --default-authentication-plugin=mysql_native_password
volumes:
my-db: {}
cloudlog-config: {}
cloudlog-backup: {}
cloudlog-uploads: {}