blob: 4b757efe5d166dc894ace4993d1100d8a2a3f0f8 (
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
|
version: "2"
services:
opendc:
build: ./
image: opendc
ports:
- "8081:8081"
links:
- mariadb
depends_on:
- mariadb
environment:
- MYSQL_DATABASE=opendc
- MYSQL_USER=opendc
- MYSQL_PASSWORD=opendcpassword
mariadb:
image: mariadb:10.1
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"
|