fix docker

This commit is contained in:
Akis 2022-12-30 19:56:51 +02:00
parent 0e39acd44e
commit 0a738c5ee3
Signed by untrusted user: akis
GPG Key ID: 267BF5C6677944ED
3 changed files with 22 additions and 22 deletions

View File

@ -1,4 +1,4 @@
FROM node:19-alpine FROM node:18-alpine
WORKDIR /usr/src/app WORKDIR /usr/src/app
@ -15,4 +15,4 @@ RUN pnpm build
EXPOSE 4173 EXPOSE 4173
CMD [ "pnpm", "preview" ] CMD [ "pnpm", "preview", "--host" ]

View File

@ -1,28 +1,30 @@
services: services:
segfaultapi: website:
container_name: segfaultapi container_name: website
#image: realprojectsegfault/segfaultapi #image: realprojectsegfault/website
restart: always restart: unless-stopped
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
environment:
AUTH_SECRET: ${AUTH_SECRET}
ports: ports:
- 6893:6893 - 1337:4173
volumes: volumes:
- ./config:/app/config - ./config:/app/config
segfaultapi-db: website-db:
image: mongo image: postgres
container_name: segfaultapi-db container_name: website-db
restart: always
ports:
- 27017:27017
volumes:
- segfaultapi-db-data:/data/db
environment: environment:
MONGO_INITDB_ROOT_USERNAME: $MONGO_USER POSTGRES_USER: postgres
MONGO_INITDB_ROOT_PASSWORD: $MONGO_PASSWORD POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
MONGO_INITDB_DATABASE: segfaultapi PGDATA: /data/postgres
command: [--auth] POSTGRES_DB: website
volumes:
- website-db-data:/data/postgres
ports:
- "5432:5432"
restart: unless-stopped
volumes: volumes:
segfaultapi-db-data: website-db-data:

View File

@ -5,8 +5,6 @@
let announcements = data.announcements; let announcements = data.announcements;
console.log(data);
import dayjs from "dayjs"; import dayjs from "dayjs";
</script> </script>