mirror of https://github.com/JustKato/FreePad.git
Docker Update
This commit is contained in:
parent
da324e4ca1
commit
9bb1471c22
|
@ -5,3 +5,4 @@ docker-compose.yaml
|
||||||
# Ignore the database file
|
# Ignore the database file
|
||||||
dist/main.db
|
dist/main.db
|
||||||
dist/freepad
|
dist/freepad
|
||||||
|
dist/freepad
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
LABEL version="1.1.0"
|
LABEL version="1.4.0"
|
||||||
|
|
||||||
# Copy the distribution files
|
# Copy the distribution files
|
||||||
COPY ./dist /app
|
COPY ./dist /app
|
||||||
|
|
|
@ -6,7 +6,8 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_URL
|
- DOMAIN_BASE=http://localhost:8888
|
||||||
|
- MYSQL_URL=mariadb
|
||||||
- MYSQL_ROOT_PASSWORD
|
- MYSQL_ROOT_PASSWORD
|
||||||
- MYSQL_DATABASE
|
- MYSQL_DATABASE
|
||||||
- MYSQL_USER
|
- MYSQL_USER
|
||||||
|
@ -14,8 +15,9 @@ services:
|
||||||
- MYSQL_PORT
|
- MYSQL_PORT
|
||||||
depends_on:
|
depends_on:
|
||||||
- mariadb
|
- mariadb
|
||||||
|
ports:
|
||||||
|
- 8888:8080
|
||||||
|
|
||||||
# Mariadb is completely optional, you can simply just use sqlite.
|
|
||||||
mariadb:
|
mariadb:
|
||||||
image: mariadb:10.2
|
image: mariadb:10.2
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in New Issue