-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.simple.yml
86 lines (80 loc) · 2.09 KB
/
docker-compose.simple.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '3.8'
services:
db:
image: mariadb
hostname: mariadb
restart: always
environment:
- LANG
- MARIADB_ROOT_PASSWORD
- MARIADB_DATABASE
- MARIADB_USER
- MARIADB_PASSWORD
- MARIADB_AUTO_UPGRADE
volumes:
- ./db/initdb:/docker-entrypoint-initdb.d
- gibbon-db-data:/var/lib/mysql
- gibbon-db-log:/var/log/mysql
- ./db/backup:/backup
- ./db/backupscripts:/backupscripts
- /etc/localtime:/etc/localtime:ro
labels:
ofelia.enabled: "true"
ofelia.job-exec.db-backup.schedule: "0 2 7-19,23 * * *"
ofelia.job-exec.db-backup.command: "/backupscripts/simplebackup_hourly.sh"
ofelia.job-exec.backupreduce-daily.schedule: "@daily"
ofelia.job-exec.backupreduce-daily.command: "/backupscripts/backupreduce_daily.sh"
ofelia.job-exec.backupreduce-monthly.schedule: "@monthly"
ofelia.job-exec.backupreduce-monthly.command: "/backupscripts/backupreduce_monthly.sh"
apache:
build: ./webserver
hostname: gibbon-apache
restart: always
depends_on:
- php
environment:
- GIBBON_SITENAME
- SERVER_ADMIN_MAIL
ports:
- 80:80
volumes:
- /etc/localtime:/etc/localtime:ro
- gibbon-root:${GIBBON_BASEDIR}
php:
build:
context: ./php
dockerfile: Dockerfile
target: dev
hostname: gibbon-php
restart: always
environment:
- GIBBON_SITENAME
- GIBBON_VERSION
- GIBBON_BASEDIR
volumes:
- gibbon-root:${GIBBON_BASEDIR}
ofelia:
image: mcuadros/ofelia:latest
depends_on:
- db
command: daemon --docker -f label=com.docker.compose.project=${COMPOSE_PROJECT_NAME}
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
smtpd:
image: namshi/smtp
restart: always
depends_on:
- php
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
- MAILNAME
- SMARTHOST_ADDRESS
- SMARTHOST_PORT
- SMARTHOST_USER
- SMARTHOST_PASSWORD
- SMARTHOST_ALIASES
volumes:
gibbon-db-data:
gibbon-db-log:
gibbon-root: