name: shorten services: goshort: cpu_shares: 90 command: [] container_name: goshort_app depends_on: goshort-db: condition: service_healthy required: true deploy: resources: limits: memory: "6217007104" environment: DATABASE_URL: postgres://goshort:goshort_password@goshort-db:5432/goshort?sslmode=disable hostname: goshort_app image: petrakisg/goshort:1.0.1 networks: goshort_net: null ports: - mode: ingress target: 80 published: "8082" protocol: tcp restart: unless-stopped goshort-db: cpu_shares: 90 command: [] container_name: goshort_db deploy: resources: limits: memory: "6217007104" environment: POSTGRES_DB: goshort POSTGRES_PASSWORD: goshort_password POSTGRES_USER: goshort hostname: goshort_db healthcheck: test: - CMD-SHELL - pg_isready -U goshort -d goshort timeout: 5s interval: 10s retries: 5 image: postgres:17-alpine networks: goshort_net: null restart: unless-stopped volumes: - type: bind source: /root/shorten/postgres_data target: /var/lib/postgresql/data bind: create_host_path: true networks: default: name: shorten_default goshort_net: name: goshort_net external: true x-casaos: author: self category: self hostname: "" icon: "" index: /shorten is_uncontrolled: false port_map: "8082" scheme: http title: custom: Shorten