add docker
This commit is contained in:
parent
7c1273e06c
commit
3e9183f55b
11
Dockerfile
Normal file
11
Dockerfile
Normal 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
27
docker-compose.yml
Normal 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
|
||||||
Loading…
Reference in New Issue
Block a user