-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-template.yml
More file actions
59 lines (54 loc) · 2.01 KB
/
docker-compose-template.yml
File metadata and controls
59 lines (54 loc) · 2.01 KB
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
############################################################
# Launcher for Wordpress container for the eBioKit
# This is a template, the following values must be replaced:
# - $${INSTANCE_NAME}, name for the instance
# - ${DATA_LOCATION}, parent directory for data DATA_LOCATION
# - ${INSTANCE_PORT_1}, port number for the instance (port 80)
# - ${SITE_NAME}, name for the web site
# - ${ADMIN_USER}, the name for admin user
# - ${ADMIN_PASS}, password for admin user
# - ${ADMIN_EMAIL}, email for admin user
# - ${MARIADB_ROOT_PASSWORD}, password for the MariaDB server
############################################################
version: '2'
services:
$${INSTANCE_NAME}-moodle:
image: bitnami/moodle:3
container_name: $${INSTANCE_NAME}-moodle
environment:
- MOODLE_SITENAME=${SITE_NAME}
- MOODLE_USERNAME=${ADMIN_USER}
- MOODLE_EMAIL=${ADMIN_EMAIL}
- MOODLE_PASSWORD=${ADMIN_PASS}
- MOODLE_DATABASE_PASSWORD=${MARIADB_ROOT_PASSWORD}
links:
- $${INSTANCE_NAME}-mariadb:mariadb
depends_on:
- $${INSTANCE_NAME}-mariadb
ports:
- ${INSTANCE_PORT_1}:80
$${INSTANCE_NAME}-fix-mariadb-owner:
image: bitnami/mariadb:10.3
user: root
command: chown -R 1001:1001 /bitnami
depends_on:
- $${INSTANCE_NAME}-moodle-data
volumes_from:
- $${INSTANCE_NAME}-moodle-data
$${INSTANCE_NAME}-mariadb:
image: bitnami/mariadb:10.3
container_name: $${INSTANCE_NAME}-mariadb
environment:
- MARIADB_DATABASE=bitnami_moodle
- MARIADB_USER=bn_moodle
- MARIADB_PASSWORD=${MARIADB_ROOT_PASSWORD}
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
depends_on:
- $${INSTANCE_NAME}-fix-mariadb-owner
volumes_from:
- $${INSTANCE_NAME}-moodle-data
$${INSTANCE_NAME}-moodle-data:
image: busybox
container_name: $${INSTANCE_NAME}-moodle-data
volumes:
- ${DATA_LOCATION}/$${INSTANCE_NAME}-data/mysql:/bitnami