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
@ -15,4 +15,4 @@ RUN pnpm build
EXPOSE 4173
CMD [ "pnpm", "preview" ]
CMD [ "pnpm", "preview", "--host" ]

View File

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

View File

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