version: '2' services: gitea: image: gitea/gitea:1.4 volumes: - gitea:/data ports: - ${SSH_PORT}:22 depends_on: - database links: - database:db labels: io.rancher.container.hostname_override: container_name service: 3000 database: image: postgres:alpine volumes: - gitea-db:/var/lib/postgresql/data environment: POSTGRES_PASSWORD: ${DB_PASSWORD} labels: io.rancher.container.hostname_override: container_name # io.rancher.scheduler.affinity:host_label: host.run=cm letsencrypt: image: janeczku/rancher-letsencrypt:v0.5.0 environment: API_VERSION: Production AWS_ACCESS_KEY: '' AWS_SECRET_KEY: '' AZURE_CLIENT_ID: '' AZURE_CLIENT_SECRET: '' AZURE_RESOURCE_GROUP: '' AZURE_SUBSCRIPTION_ID: '' AZURE_TENANT_ID: '' CERT_NAME: ${DOMAIN} CLOUDFLARE_EMAIL: '' CLOUDFLARE_KEY: '' DNSIMPLE_EMAIL: '' DNSIMPLE_KEY: '' DNS_RESOLVERS: 8.8.8.8:53,8.8.4.4:53 DOMAINS: ${DOMAIN} DO_ACCESS_TOKEN: '' DYN_CUSTOMER_NAME: '' DYN_PASSWORD: '' DYN_USER_NAME: '' EMAIL: s.hoffmann@hoffmann-hosting.de EULA: 'Yes' GANDI_API_KEY: '' OVH_APPLICATION_KEY: '' OVH_APPLICATION_SECRET: '' OVH_CONSUMER_KEY: '' PROVIDER: HTTP PUBLIC_KEY_TYPE: RSA-2048 RENEWAL_PERIOD_DAYS: '20' RENEWAL_TIME: '12' VULTR_API_KEY: '' volumes: - /var/lib/rancher:/var/lib/rancher - zertifikate:/etc/letsencrypt labels: io.rancher.container.agent.role: environment io.rancher.container.create_agent: 'true' service: letsencrypt volumes: gitea: driver: rancher-nfs gitea-db: driver: rancher-nfs zertifikate: driver: local