forked from dachan/dach
Docker changes
This commit is contained in:
parent
78b48c40c2
commit
853850f8af
|
@ -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"]
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue