FEAT: add dockerfile
This commit is contained in:
5
Dockerfile
Normal file
5
Dockerfile
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
FROM node:18
|
||||||
|
|
||||||
|
VOLUME ./dist
|
||||||
|
|
||||||
|
CMD node ./dist/server/entry.mjs
|
@@ -2,13 +2,12 @@ version: "3.7"
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: node:18
|
image: pegazio
|
||||||
|
build: .
|
||||||
container_name: pegazio
|
container_name: pegazio
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- $PORT:$PORT_EXPOSED
|
- $PORT:$PORT_EXPOSED
|
||||||
volumes:
|
|
||||||
- "${MEDIA_DIR}:/media"
|
|
||||||
environment:
|
environment:
|
||||||
VIRTUAL_HOST: "${DOMAIN}"
|
VIRTUAL_HOST: "${DOMAIN}"
|
||||||
LETSENCRYPT_HOST: "${DOMAIN}"
|
LETSENCRYPT_HOST: "${DOMAIN}"
|
||||||
|
Reference in New Issue
Block a user