From 9bb1471c22c7848a4ac0f5f36b038441ab757399 Mon Sep 17 00:00:00 2001 From: Kato Twofold Date: Wed, 18 May 2022 01:40:22 +0300 Subject: [PATCH] Docker Update --- .gitignore | 1 + Dockerfile | 2 +- docker-compose.example.yaml | 6 ++++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index b33ca54..1f20613 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ docker-compose.yaml # Ignore the database file dist/main.db dist/freepad +dist/freepad diff --git a/Dockerfile b/Dockerfile index 125fcf4..ef5f4d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM alpine -LABEL version="1.1.0" +LABEL version="1.4.0" # Copy the distribution files COPY ./dist /app diff --git a/docker-compose.example.yaml b/docker-compose.example.yaml index e68499a..9d43cc6 100644 --- a/docker-compose.example.yaml +++ b/docker-compose.example.yaml @@ -6,7 +6,8 @@ services: networks: - backend environment: - - MYSQL_URL + - DOMAIN_BASE=http://localhost:8888 + - MYSQL_URL=mariadb - MYSQL_ROOT_PASSWORD - MYSQL_DATABASE - MYSQL_USER @@ -14,8 +15,9 @@ services: - MYSQL_PORT depends_on: - mariadb + ports: + - 8888:8080 - # Mariadb is completely optional, you can simply just use sqlite. mariadb: image: mariadb:10.2 environment: