update staging environment

This commit is contained in:
Dobromir Popov
2024-05-04 16:22:57 +03:00
parent 80ce60cb5d
commit 9d37985720
2 changed files with 8 additions and 3 deletions

View File

@ -1,12 +1,13 @@
version: "3"
services:
nextjs-app: # https://sofia.mwitnessing.com/
nextjs-app: # https://sofia.mwhitnessing.com/
hostname: jwpw-app-staging # jwpw-nextjs-app-1
image: docker.d-popov.com/jwpw:latest
volumes:
- /mnt/docker_volumes/pw-demo/app/public/content/uploads/:/app/public/content/uploads
- /mnt/docker_volumes/pw-demo/app/logs:/app/logs
environment:
- APP_ENV=test
- APP_ENV=test.staging
- NODE_ENV=test
- TZ=Europe/Sofia
- DATABASE=mysql://jwpwsofia_demo:dwxhns9p9vp248@mariadb-demo:3306/jwpwsofia_demo
@ -14,12 +15,13 @@ services:
- GIT_BRANCH=main
- GIT_USERNAME=deploy
- GIT_PASSWORD=L3Kr2R438u4F7
command: sh -c " cd /app && npm install && npx next build && npm run nodeenv; tail -f /dev/null"
command: sh -c " cd /app && npm install && npx next build && npm run start-env; tail -f /dev/null"
tty: true
stdin_open: true
restart: always
networks:
- infrastructure_default
- default
mariadb:
deploy:
replicas: 1
@ -33,6 +35,9 @@ services:
MYSQL_DATABASE: jwpwsofia_demo
MYSQL_USER: jwpwsofia_demo
MYSQL_PASSWORD: dwxhns9p9vp248
# networks:
# - infrastructure_default
# - default
networks:
infrastructure_default:
external: true