pp ocean stage

master
omidshj 2025-05-13 20:03:41 +03:30
parent 733322588e
commit 844e4a9a57
1 changed files with 33 additions and 0 deletions

33
pp ocean stage.yml Normal file
View File

@ -0,0 +1,33 @@
---
- name: deploy ocean
hosts: all
tasks:
- name: Stop ocean container if it exists
docker_container:
name: ocean_stage
state: absent
- name: Deploy ocean Docker container
docker_container:
name: ocean_stage
image: ocean:{{semaphore_vars.task_details.incoming_version}}
state: started
restart_policy: always
networks:
- name: web
env:
SERVER_BASE_URL: "{{SERVER_BASE_URL}}"
DEBUG: "{{DEBUG}}"
IS_MF: "TRUE"
BASE_URL: "{{BASE_URL}}"
# HOST: "{{HOST}}"
labels:
traefik.enable: "true"
traefik.docker.network: "web"
traefik.http.routers.socean.entrypoints: "web,websecure"
traefik.http.routers.socean.rule: "HostRegexp(`{subdomain:[a-zA-Z0-9-]+}.stg.eron.co`)"
traefik.http.services.socean.loadbalancer.server.port: "3000"
traefik.http.routers.socean.tls: "true"
traefik.http.routers.socean.tls.certresolver: "dnsresolver"
traefik.http.routers.socean.service: "socean"
traefik.http.routers.socean.tls.domains[0].main: "stg.eron.co"
traefik.http.routers.socean.tls.domains[0].sans: "*.stg.eron.co"