diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6db0653 --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e2ae596 --- /dev/null +++ b/docker-compose.yml @@ -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