forked from dachan/dach
1
0
Fork 0

Docker changes

This commit is contained in:
leca 2023-10-27 22:21:25 +03:00
parent 78b48c40c2
commit 853850f8af
3 changed files with 7 additions and 16 deletions

View File

@ -1,12 +1,9 @@
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"]
ENTRYPOINT ["./docker-entrypoint.sh"]

View File

@ -5,8 +5,8 @@ services:
image: postgres:12.1-alpine
container_name: dach_db
restart: always
# healthcheck:
# test: ["CMD", "pg_isready", "-U", "dach"]
healthcheck:
test: ["CMD", "pg_isready", "-U", "dach"]
env_file:
- ./db.env
volumes:
@ -23,18 +23,12 @@ services:
restart: always
ports:
- '1337:1337'
- '1488:1488'
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
db:
condition: service_started

0
docker-entrypoint.sh Normal file → Executable file
View File