mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-12-23 13:40:00 +05:30
fix docker
This commit is contained in:
parent
0e39acd44e
commit
0a738c5ee3
@ -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" ]
|
38
compose.yml
38
compose.yml
@ -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:
|
@ -5,8 +5,6 @@
|
||||
|
||||
let announcements = data.announcements;
|
||||
|
||||
console.log(data);
|
||||
|
||||
import dayjs from "dayjs";
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user