infracloud/dev-scripts/recreate_ghj_oneline.sh
2026-03-04 05:58:41 -06:00

9 lines
2.3 KiB
Bash

# Backend GHJ
docker stop iw4sow8s0kkg4cccsk08gsoo-005529162729 || true
docker rm iw4sow8s0kkg4cccsk08gsoo-005529162729 || true
docker run -d --name iw4sow8s0kkg4cccsk08gsoo-005529162729 --restart always --network coolify -e DATABASE_URL='postgres://gohorsejobs:gohorsejobs123@bgws48os8wgwk08o48wg8k80:5432/gohorsejobs?sslmode=disable' -e JWT_SECRET='gohorsejobs-dev-jwt-secret-2024-very-secure-key-32ch' -e JWT_EXPIRATION='7d' -e PASSWORD_PEPPER='gohorse-pepper' -e COOKIE_SECRET='gohorsejobs-cookie-secret-dev' -e BACKEND_PORT='8521' -e ENV='development' -e FRONTEND_URL='https://local.gohorsejobs.com' -e CORS_ORIGINS='https://local.gohorsejobs.com,https://b-local.gohorsejobs.com,https://s-local.gohorsejobs.com' --label 'traefik.enable=true' --label 'traefik.http.routers.https-0-iw4sow8s0kkg4cccsk08gsoo.rule=Host("api-local.gohorsejobs.com") && PathPrefix("/")' --label 'traefik.http.routers.https-0-iw4sow8s0kkg4cccsk08gsoo.entrypoints=https' --label 'traefik.http.routers.https-0-iw4sow8s0kkg4cccsk08gsoo.tls=true' --label 'traefik.http.routers.https-0-iw4sow8s0kkg4cccsk08gsoo.tls.certresolver=letsencrypt' --label 'traefik.http.services.https-0-iw4sow8s0kkg4cccsk08gsoo.loadbalancer.server.port=8521' --label 'coolify.managed=true' --label 'coolify.environmentName=local' sha256:66cc95a5e3c9782648afd3dce5c363cb74d25327d58cd1c9fcd52562a22dd7ad
# Frontend GHJ
docker stop ao8g40scws0w4cgo8coc8o40-012519153681 || true
docker rm ao8g40scws0w4cgo8coc8o40-012519153681 || true
docker run -d --name ao8g40scws0w4cgo8coc8o40-012519153681 --restart always --network coolify -e API_URL='https://api-local.gohorsejobs.com' -e NEXT_PUBLIC_API_URL='https://api-local.gohorsejobs.com' -e NEXT_PUBLIC_BACKOFFICE_URL='https://b-local.gohorsejobs.com' --label 'traefik.enable=true' --label 'traefik.http.routers.https-0-ao8g40scws0w4cgo8coc8o40.rule=Host("local.gohorsejobs.com") && PathPrefix("/")' --label 'traefik.http.routers.https-0-ao8g40scws0w4cgo8coc8o40.entrypoints=https' --label 'traefik.http.routers.https-0-ao8g40scws0w4cgo8coc8o40.tls=true' --label 'traefik.http.routers.https-0-ao8g40scws0w4cgo8coc8o40.tls.certresolver=letsencrypt' --label 'traefik.http.services.https-0-ao8g40scws0w4cgo8coc8o40.loadbalancer.server.port=3000' --label 'coolify.managed=true' --label 'coolify.environmentName=local' sha256:3f3f2ceb6395a01e13930d4e5aaa88d8173f7305cc0d412183145082993b6411