blob: ac4bc27f8d0a9ba5b59d76a8c9e002930c154fe0 (
plain)
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
|
version: "2"
services:
frontend:
build: ./
image: frontend
restart: on-failure
ports:
- "8081:8081"
links:
- mariadb
depends_on:
- mariadb
environment:
- MYSQL_DATABASE=opendc
- MYSQL_USER=opendc
- MYSQL_PASSWORD=opendcpassword
simulator:
build:
context: ./opendc-simulator
dockerfile: opendc-integration-jpa/mysql/Dockerfile
image: simulator
restart: on-failure
links:
- mariadb
depends_on:
- mariadb
environment:
- PERSISTENCE_URL=jdbc:mysql://mariadb:3306/opendc
- PERSISTENCE_USER=opendc
- PERSISTENCE_PASSWORD=opendcpassword
mariadb:
image: mariadb:10.1
restart: on-failure
ports:
- "3306:3306" # comment this line out in production
environment:
- MYSQL_DATABASE=opendc
- MYSQL_USER=opendc
- MYSQL_PASSWORD=opendcpassword
- MYSQL_RANDOM_ROOT_PASSWORD=yes
# uncomment in production
# volumes:
# - "/data/mariadb:/var/lib/mysql"
|