ci: migrate deployments to VPS HTTPS infrastructure
Some checks failed
THE-TIP-TOP-MULTIBRANCH/pipeline/head There was a failure building this commit
Some checks failed
THE-TIP-TOP-MULTIBRANCH/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -12,11 +12,7 @@ services:
|
||||
- tiptop_preprod_postgres_data:/var/lib/postgresql/data
|
||||
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
"CMD-SHELL",
|
||||
"pg_isready -U tiptop_preprod -d the_tip_top_preprod"
|
||||
]
|
||||
test: ["CMD-SHELL", "pg_isready -U tiptop_preprod -d the_tip_top_preprod"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
@@ -37,12 +33,7 @@ services:
|
||||
NODE_ENV: preproduction
|
||||
DATABASE_URL: postgresql://tiptop_preprod:tiptop_preprod_password@postgres:5432/the_tip_top_preprod
|
||||
JWT_SECRET: preprod_secret_change_me
|
||||
APP_URL: http://192.168.1.23:5002
|
||||
MAIL_HOST: smtp.gmail.com
|
||||
MAIL_PORT: 587
|
||||
MAIL_USER: ""
|
||||
MAIL_PASS: ""
|
||||
MAIL_FROM: "The Tip Top Preprod <no-reply@tiptop.local>"
|
||||
APP_URL: https://api-preprod.dsp5-archi-o24a-4-5-g4.fr
|
||||
|
||||
command: >
|
||||
sh -c "
|
||||
@@ -51,11 +42,18 @@ services:
|
||||
npm start
|
||||
"
|
||||
|
||||
ports:
|
||||
- "5002:5000"
|
||||
|
||||
networks:
|
||||
- tiptop-preprod
|
||||
- proxy
|
||||
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=proxy"
|
||||
- "traefik.http.routers.tiptop-preprod-api.rule=Host(`api-preprod.dsp5-archi-o24a-4-5-g4.fr`)"
|
||||
- "traefik.http.routers.tiptop-preprod-api.entrypoints=websecure"
|
||||
- "traefik.http.routers.tiptop-preprod-api.tls=true"
|
||||
- "traefik.http.routers.tiptop-preprod-api.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.tiptop-preprod-api.loadbalancer.server.port=5000"
|
||||
|
||||
frontend:
|
||||
image: ${REGISTRY}/the-tip-top/frontend:${IMAGE_TAG}
|
||||
@@ -64,11 +62,18 @@ services:
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
ports:
|
||||
- "5174:80"
|
||||
|
||||
networks:
|
||||
- tiptop-preprod
|
||||
- proxy
|
||||
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=proxy"
|
||||
- "traefik.http.routers.tiptop-preprod.rule=Host(`preprod.dsp5-archi-o24a-4-5-g4.fr`)"
|
||||
- "traefik.http.routers.tiptop-preprod.entrypoints=websecure"
|
||||
- "traefik.http.routers.tiptop-preprod.tls=true"
|
||||
- "traefik.http.routers.tiptop-preprod.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.tiptop-preprod.loadbalancer.server.port=80"
|
||||
|
||||
volumes:
|
||||
tiptop_preprod_postgres_data:
|
||||
@@ -77,3 +82,6 @@ volumes:
|
||||
networks:
|
||||
tiptop-preprod:
|
||||
name: tiptop-preprod
|
||||
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user