diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 23:36:55 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 23:36:55 +0200 |
| commit | 25ea7072fd24ebc4367fb854bd4ec8b3d778b5ab (patch) | |
| tree | c26693a14a2fc0566521d12d9a2b2f97e4451e03 /docker-compose.yml | |
| parent | 12ce92b9aa4afa5c9a476c186b4bd924e3398f5b (diff) | |
Move to MariaDB
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..4b757efe --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,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" |
