forked from dachan/dach
Embeeded env to files
This commit is contained in:
commit
f198348ddb
|
@ -0,0 +1,12 @@
|
||||||
|
FROM node:18
|
||||||
|
ARG UID=911
|
||||||
|
ARG GID=911
|
||||||
|
|
||||||
|
WORKDIR /usr/share/dach
|
||||||
|
COPY package*.json ./
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN npm install
|
||||||
|
USER dach
|
||||||
|
EXPOSE 1337
|
||||||
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
|
@ -0,0 +1,3 @@
|
||||||
|
POSTGRES_USER=dach
|
||||||
|
POSTGRES_PASSWORD=0b45b85307c42f800e5755f3dee5189946a2d8b9
|
||||||
|
POSTGRES_DB=dach
|
|
@ -0,0 +1,40 @@
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: postgres:12.1-alpine
|
||||||
|
container_name: dach_db
|
||||||
|
restart: always
|
||||||
|
# healthcheck:
|
||||||
|
# test: ["CMD", "pg_isready", "-U", "dach"]
|
||||||
|
env_file:
|
||||||
|
- ./db.env
|
||||||
|
volumes:
|
||||||
|
- ./postgres:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
web:
|
||||||
|
container_name: dachan.fun
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD-SHELL",
|
||||||
|
"wget -q --spider --proxy=off localhost:1337 || exit 1",
|
||||||
|
]
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- '1337:1337'
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
|
||||||
|
# Feel free to remove or override this section
|
||||||
|
# See 'Build-time variables' in README.md
|
||||||
|
args:
|
||||||
|
- "UID=911"
|
||||||
|
- "GID=911"
|
||||||
|
# volumes:
|
||||||
|
# - ./uploads:/var/lib/pleroma/uploads
|
||||||
|
env_file:
|
||||||
|
- ./web.env
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
|
Loading…
Reference in New Issue