add docker
Some checks failed
ci / docker_image (push) Failing after 1m32s
ci / deploy (push) Has been skipped

This commit is contained in:
Drake Marino 2026-01-24 12:01:05 -06:00
parent 7c1273e06c
commit 3e9183f55b
2 changed files with 38 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM git.marinodev.com/marinodev/node_gitea_ci:latest
RUN cd /srv && \
git clone https://git.marinodev.com/MarinoDev/fbla26.git
WORKDIR /srv/fbla26
RUN npm ci --omit dev
RUN npm run build
EXPOSE 8080
ENTRYPOINT node /srv/fbla26/server.js

27
docker-compose.yml Normal file
View File

@ -0,0 +1,27 @@
version: '3.8'
services:
postgres:
image: postgres:17
restart: unless-stopped
env_file: ".env"
volumes:
- ./postgresql/data:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT}:5432"
networks:
- fbla26
fbla26:
image: git.marinodev.com/marinodev/fbla26_ci:latest
restart: on-failure
ports:
- "${FBLA26_PORT}:8080"
networks:
- fbla26
volumes:
- ./.env:/srv/fbla26/.env
- ./uploads:/srv/fbla26/uploads/
networks:
fbla26:
external: true