infra/playbooks/roles/hatecomputers-club/templates/docker-compose.yml.j2

25 lines
983 B
Django/Jinja

version: '3'
services:
server:
image: git.hatecomputers.club/hatecomputers/hatecomputers.club:latest
restart: always
ports:
- 127.0.0.1:9696:8080
- {{ hatecomputers_intra_bind_address }}:53:8053/udp
environment:
- CLOUDFLARE_TOKEN={{ cloudflare_api_token }}
- CLOUDFLARE_ZONE={{ cloudflare_zone_id }}
- OAUTH_SCOPES={{ hatecomputers_club_oauth2_scope }}
- OAUTH_AUTH_URL={{ hatecomputers_club_oauth2_auth_url }}
- OAUTH_TOKEN_URL={{ hatecomputers_club_oauth2_token_url }}
- OAUTH_CLIENT_ID={{ hatecomputers_club_oauth2_client_id }}
- OAUTH_CLIENT_SECRET={{ hatecomputers_club_oauth2_client_secret }}
- OAUTH_REDIRECT_URI={{ hatecomputers_club_oauth2_redirect_uri }}
- OAUTH_USER_INFO_URI={{ hatecomputers_club_oauth2_user_info_uri }}
- HCAPTCHA_SITE_KEY={{ hcaptcha_site_key }}
- HCAPTCHA_SECRET={{ hcaptcha_secret }}
volumes:
- ./db:/app/db
- ./uploads:/app/uploads