diff --git a/.env.prod b/.env.prod new file mode 100644 index 0000000..f0502d3 --- /dev/null +++ b/.env.prod @@ -0,0 +1,3 @@ +PORT=5005 +MERMS_SOCKET_PORT=5005 +MERMS_POSTGRE_URL='postgresql://merms_panel:merms_panel@10.13.3.60:5432/merms_panel' \ No newline at end of file diff --git a/docker-compose.production.yml b/docker-compose.production.yml new file mode 100644 index 0000000..cd572a2 --- /dev/null +++ b/docker-compose.production.yml @@ -0,0 +1,20 @@ +version: '3' +services: + merms-socket-micro: + build: + context: . + dockerfile: Dockerfile + env_file: + - .env.prod + restart: unless-stopped + image: registry.chiefsoft.net/merms-socket-micro:latest + volumes: + - ./:/app + - '/app/node_modules' + ports: + - ${MERMS_SOCKET_PORT}:${PORT} + environment: + - PORT=${MERMS_SOCKET_PORT} + - POSTGRE_URL=${MERMS_POSTGRE_URL} +volumes: + src: