2022-10-29 18:09:30 +01:00
|
|
|
version: "2.3"
|
|
|
|
|
|
|
|
x-website: &website
|
2023-03-30 22:43:14 +01:00
|
|
|
image: registry.gitlab.com/realorangeone/website:latest
|
2022-10-29 18:09:30 +01:00
|
|
|
user: "{{ docker_user.id }}"
|
|
|
|
restart: unless-stopped
|
|
|
|
init: true
|
|
|
|
environment:
|
|
|
|
- TZ={{ timezone }}
|
|
|
|
- DEBUG=false
|
|
|
|
- SECRET_KEY={{ website_secret_key }}
|
|
|
|
- DATABASE_URL=postgres://website:website@db/website?conn_max_age=600
|
|
|
|
- CACHE_URL=redis://redis/0
|
|
|
|
- QUEUE_STORE_URL=redis://redis/1
|
|
|
|
- RENDITION_CACHE_URL=redis://redis/2
|
|
|
|
- SPOTIFY_PROXY_HOST={{ spotify_proxy_host }}
|
|
|
|
- UNSPLASH_CLIENT_ID={{ unsplash_client_id }}
|
|
|
|
- SENTRY_DSN={{ website_sentry_dsn }}
|
2022-10-30 12:04:15 +00:00
|
|
|
- BASE_HOSTNAME=theorangeone.net
|
2023-02-22 10:41:39 +00:00
|
|
|
- WEB_CONCURRENCY=3
|
2022-10-29 18:09:30 +01:00
|
|
|
- SEO_INDEX=true
|
2022-11-18 09:12:28 +00:00
|
|
|
- ACTIVITYPUB_HOST=mastodon.theorangeone.net
|
2022-10-29 18:09:30 +01:00
|
|
|
volumes:
|
|
|
|
- ./media:/app/media
|
2022-11-30 14:08:10 +00:00
|
|
|
tmpfs:
|
|
|
|
- /tmp
|
2022-10-29 18:09:30 +01:00
|
|
|
|
|
|
|
services:
|
2023-02-22 10:41:39 +00:00
|
|
|
nginx:
|
2022-10-29 18:09:30 +01:00
|
|
|
<<: *website
|
2023-02-22 10:41:39 +00:00
|
|
|
user: root
|
|
|
|
command: /app/etc/entrypoints/nginx
|
2022-10-29 18:09:30 +01:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
2022-11-16 14:56:17 +00:00
|
|
|
- traefik.http.routers.website.rule=Host(`theorangeone.net`) || Host(`jakehoward.tech`)
|
2022-10-29 18:09:30 +01:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- traefik
|
2023-02-22 10:41:39 +00:00
|
|
|
depends_on:
|
|
|
|
- django
|
2022-10-29 18:09:30 +01:00
|
|
|
|
|
|
|
worker:
|
|
|
|
<<: *website
|
2023-02-22 10:41:39 +00:00
|
|
|
command: /app/etc/entrypoints/worker
|
2023-06-15 14:20:52 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
2022-10-29 18:09:30 +01:00
|
|
|
|
|
|
|
cron:
|
|
|
|
<<: *website
|
2023-02-22 10:41:39 +00:00
|
|
|
command: /app/etc/entrypoints/cron
|
2023-06-15 14:20:52 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
2023-02-22 10:41:39 +00:00
|
|
|
|
|
|
|
django:
|
|
|
|
<<: *website
|
|
|
|
command: /app/etc/entrypoints/web
|
2023-06-15 14:20:52 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
2022-10-29 18:09:30 +01:00
|
|
|
|
|
|
|
db:
|
2023-09-16 08:00:51 +01:00
|
|
|
image: postgres:16-alpine
|
2022-10-29 18:09:30 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./postgres:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=website
|
|
|
|
- POSTGRES_USER=website
|
|
|
|
|
|
|
|
redis:
|
2022-11-21 16:02:19 +00:00
|
|
|
image: redis:7-alpine
|
2022-10-29 18:09:30 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./redis:/data
|
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
external: true
|