-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-template.yml
More file actions
38 lines (34 loc) · 1.19 KB
/
docker-compose-template.yml
File metadata and controls
38 lines (34 loc) · 1.19 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
############################################################
# Launcher for Wordpress container for the eBioKit
# This is a template, the following values must be replaced:
# - $${INSTANCE_NAME}, name for the instance
# - ${INSTANCE_PORT_1}, port number for STATegraEMS instance
# - ${MYSQL_ROOT_PASSWORD}, password for the mysql server
############################################################
version: '2'
services:
$${INSTANCE_NAME}-wordpress:
image: wordpress
container_name: $${INSTANCE_NAME}-wordpress
environment:
- WORDPRESS_DB_PASSWORD=${MYSQL_ROOT_PASSWORD}
links:
- $${INSTANCE_NAME}-mysql:mysql
depends_on:
- $${INSTANCE_NAME}-mysql
ports:
- "${INSTANCE_PORT_1}:80"
$${INSTANCE_NAME}-mysql:
image: mysql:5.7
container_name: $${INSTANCE_NAME}-mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
depends_on:
- $${INSTANCE_NAME}-data
volumes_from:
- $${INSTANCE_NAME}-data
$${INSTANCE_NAME}-data:
image: busybox
container_name: $${INSTANCE_NAME}-data
volumes:
- ${DATA_LOCATION}/$${INSTANCE_NAME}-data/mysql:/var/lib/mysql