mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
fix: adapt docker image to new config format
This commit is contained in:
parent
b378597594
commit
3bafde7ab1
11
Dockerfile
11
Dockerfile
@ -8,7 +8,7 @@ RUN cd /src && go build -o wakapi
|
|||||||
# Final Stage
|
# Final Stage
|
||||||
|
|
||||||
# When running the application using `docker run`, you can pass environment variables
|
# When running the application using `docker run`, you can pass environment variables
|
||||||
# to override config values from .env using `-e` syntax.
|
# to override config values using `-e` syntax.
|
||||||
# Available options are:
|
# Available options are:
|
||||||
# – WAKAPI_DB_TYPE
|
# – WAKAPI_DB_TYPE
|
||||||
# – WAKAPI_DB_USER
|
# – WAKAPI_DB_USER
|
||||||
@ -22,7 +22,7 @@ RUN cd /src && go build -o wakapi
|
|||||||
FROM debian
|
FROM debian
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ENV ENV prod
|
ENV ENVIRONMENT prod
|
||||||
ENV WAKAPI_DB_TYPE sqlite3
|
ENV WAKAPI_DB_TYPE sqlite3
|
||||||
ENV WAKAPI_DB_USER ''
|
ENV WAKAPI_DB_USER ''
|
||||||
ENV WAKAPI_DB_PASSWORD ''
|
ENV WAKAPI_DB_PASSWORD ''
|
||||||
@ -31,12 +31,11 @@ ENV WAKAPI_DB_NAME=/data/wakapi.db
|
|||||||
ENV WAKAPI_PASSWORD_SALT ''
|
ENV WAKAPI_PASSWORD_SALT ''
|
||||||
|
|
||||||
COPY --from=build-env /src/wakapi /app/
|
COPY --from=build-env /src/wakapi /app/
|
||||||
COPY --from=build-env /src/config.ini /app/
|
COPY --from=build-env /src/config.default.yml /app/config.yml
|
||||||
COPY --from=build-env /src/version.txt /app/
|
COPY --from=build-env /src/version.txt /app/
|
||||||
COPY --from=build-env /src/.env.example /app/.env
|
|
||||||
|
|
||||||
RUN sed -i 's/listen = 127.0.0.1/listen = 0.0.0.0/g' /app/config.ini
|
RUN sed -i 's/listen_ipv4: 127.0.0.1/listen_ipv4: 0.0.0.0/g' /app/config.yml
|
||||||
RUN sed -i 's/insecure_cookies = false/insecure_cookies = true/g' /app/config.ini
|
RUN sed -i 's/insecure_cookies: false/insecure_cookies: true/g' /app/config.yml
|
||||||
|
|
||||||
ADD static /app/static
|
ADD static /app/static
|
||||||
ADD data /app/data
|
ADD data /app/data
|
||||||
|
@ -46,7 +46,7 @@ To use the demo version set `api_url = https://apps.muetsch.io/wakapi/api/heartb
|
|||||||
docker run -d -p 3000:3000 --name wakapi n1try/wakapi
|
docker run -d -p 3000:3000 --name wakapi n1try/wakapi
|
||||||
```
|
```
|
||||||
|
|
||||||
By default, SQLite is used as a database. To run Wakapi in Docker with MySQL or Postgres, see [Dockerfile](https://github.com/muety/wakapi/blob/master/Dockerfile) and [.env.example](https://github.com/muety/wakapi/blob/master/.env.example) for further options.
|
By default, SQLite is used as a database. To run Wakapi in Docker with MySQL or Postgres, see [Dockerfile](https://github.com/muety/wakapi/blob/master/Dockerfile) and [config.default.yml](https://github.com/muety/wakapi/blob/master/config.default.yml) for further options.
|
||||||
|
|
||||||
## 🔧 Configuration
|
## 🔧 Configuration
|
||||||
You can specify configuration options either via a config file (default: `config.yml`, customziable through the `-c` argument) or via environment variables. Here is an overview of all options.
|
You can specify configuration options either via a config file (default: `config.yml`, customziable through the `-c` argument) or via environment variables. Here is an overview of all options.
|
||||||
|
@ -1 +1 @@
|
|||||||
1.12.0
|
1.12.1
|
Loading…
Reference in New Issue
Block a user