Docker: compose file and script to build and run

This commit is contained in:
Théo Marchal 2024-04-06 18:13:39 +02:00
parent 4595f54660
commit fbed2635e2
2 changed files with 16 additions and 0 deletions

2
custom/build-run.sh Normal file
View File

@ -0,0 +1,2 @@
docker build -t quartz-jpg ..
docker-compose up -d --force-recreate

14
custom/docker-compose.yml Normal file
View File

@ -0,0 +1,14 @@
version: '3.4'
services:
quartz:
image: quartz-jpg
build:
context: .
dockerfile: Dockerfile
environment:
NODE_ENV: production
container_name: quartz
restart: always
ports:
- 8080:8080