services:
  openproject:
    image: 'openproject/openproject:14'
    restart: unless-stopped
    environment:
      DATABASE_URL: 'postgresql://openproject:openproject@db:5432/openproject'
      SECRET_KEY_BASE: mysecret
      COOLIFY_RESOURCE_UUID: cs80o4sgo440gkwkogo4c44k
      COOLIFY_CONTAINER_NAME: openproject-cs80o4sgo440gkwkogo4c44k
      COOLIFY_FQDN: projetos.rede5.com.br
      COOLIFY_URL: 'https://projetos.rede5.com.br'
      SERVICE_NAME_OPENPROJECT: openproject
      SERVICE_NAME_DB: db
    volumes:
      - 'cs80o4sgo440gkwkogo4c44k_openproject-data:/var/lib/openproject'
    container_name: openproject-cs80o4sgo440gkwkogo4c44k
    labels:
      - coolify.managed=true
      - coolify.version=4.0.0-beta.463
      - coolify.serviceId=6
      - coolify.type=service
      - coolify.name=openproject-cs80o4sgo440gkwkogo4c44k
      - coolify.resourceName=openproject
      - coolify.projectName=openproject
      - coolify.serviceName=openproject
      - coolify.environmentName=production
      - coolify.pullRequestId=0
      - coolify.service.subId=19
      - coolify.service.subType=application
      - coolify.service.subName=openproject
      - traefik.enable=true
      - traefik.http.middlewares.gzip.compress=true
      - traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https
      - traefik.http.routers.http-0-cs80o4sgo440gkwkogo4c44k-openproject.entryPoints=http
      - traefik.http.routers.http-0-cs80o4sgo440gkwkogo4c44k-openproject.middlewares=redirect-to-https
      - 'traefik.http.routers.http-0-cs80o4sgo440gkwkogo4c44k-openproject.rule=Host(`projetos.rede5.com.br`) && PathPrefix(`/`)'
      - traefik.http.routers.https-0-cs80o4sgo440gkwkogo4c44k-openproject.entryPoints=https
      - traefik.http.routers.https-0-cs80o4sgo440gkwkogo4c44k-openproject.middlewares=gzip
      - 'traefik.http.routers.https-0-cs80o4sgo440gkwkogo4c44k-openproject.rule=Host(`projetos.rede5.com.br`) && PathPrefix(`/`)'
      - traefik.http.routers.https-0-cs80o4sgo440gkwkogo4c44k-openproject.tls.certresolver=letsencrypt
      - traefik.http.routers.https-0-cs80o4sgo440gkwkogo4c44k-openproject.tls=true
      - 'caddy_0.encode=zstd gzip'
      - 'caddy_0.handle_path.0_reverse_proxy={{upstreams}}'
      - 'caddy_0.handle_path=/*'
      - caddy_0.header=-Server
      - 'caddy_0.try_files={path} /index.html /index.php'
      - 'caddy_0=https://projetos.rede5.com.br'
      - caddy_ingress_network=cs80o4sgo440gkwkogo4c44k
    networks:
      cs80o4sgo440gkwkogo4c44k: null
    env_file:
      - .env
  db:
    image: 'postgres:16'
    restart: unless-stopped
    environment:
      POSTGRES_DB: openproject
      POSTGRES_USER: openproject
      POSTGRES_PASSWORD: openproject
      COOLIFY_RESOURCE_UUID: cs80o4sgo440gkwkogo4c44k
      COOLIFY_CONTAINER_NAME: db-cs80o4sgo440gkwkogo4c44k
      SERVICE_NAME_OPENPROJECT: openproject
      SERVICE_NAME_DB: db
    volumes:
      - 'cs80o4sgo440gkwkogo4c44k_postgres-data:/var/lib/postgresql/data'
    container_name: db-cs80o4sgo440gkwkogo4c44k
    labels:
      - coolify.managed=true
      - coolify.version=4.0.0-beta.463
      - coolify.serviceId=6
      - coolify.type=service
      - coolify.name=db-cs80o4sgo440gkwkogo4c44k
      - coolify.resourceName=openproject
      - coolify.projectName=openproject
      - coolify.serviceName=db
      - coolify.environmentName=production
      - coolify.pullRequestId=0
      - coolify.service.subId=3
      - coolify.service.subType=database
      - coolify.service.subName=db
    networks:
      cs80o4sgo440gkwkogo4c44k: null
    env_file:
      - .env
volumes:
  cs80o4sgo440gkwkogo4c44k_openproject-data:
    name: cs80o4sgo440gkwkogo4c44k_openproject-data
  cs80o4sgo440gkwkogo4c44k_postgres-data:
    name: cs80o4sgo440gkwkogo4c44k_postgres-data
networks:
  cs80o4sgo440gkwkogo4c44k:
    name: cs80o4sgo440gkwkogo4c44k
    external: true
