-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
64 lines (59 loc) · 1.59 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Docker-Compose file for the Collaborative Markdown Editor
#
# This compose file defines the 'webapp' and 'mysql' services
# which are automatically built using the Dockerfiles and
# configured using external scripts from the repository.
version: "3.6"
services:
webapp:
image: "cmd-wildfly-webapp:latest"
hostname: cmd-wildfly-instance
container_name: cmd-wildfly-webapp
build:
context: .
dockerfile: Dockerfile
args:
buildno: 1
ports:
- "8080:8080"
links:
- "mysql:mysql-instance"
networks:
- cmd_network
restart: on-failure
depends_on:
- mysql
mysql:
image: "mysql:8.0.15"
hostname: mysql-instance
container_name: cmd-mysql-instance
environment:
MYSQL_ROOT_PASSWORD: mysqlroot
MYSQL_USER: mysqluser
MYSQL_PASSWORD: mysqlpass
MYSQL_DATABASE: cmd
MYSQL_PORT: 3306
deploy:
mode: replicated
replicas: 5
restart_policy:
condition: on-failure
volumes:
- type: volume
source: mysql_data
target: /var/lib/mysql
volume:
nocopy: true
networks:
- cmd_network
ports:
- "3306:3306"
restart: on-failure
volumes:
mysql_data:
name: cmd-mysql-data
labels:
org.dhbw.mosbach.cmd.license: LGPL 3.0
networks:
cmd_network:
name: cmd_network