-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.staging.yml
69 lines (65 loc) · 2.51 KB
/
docker-compose.staging.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3'
services:
httpserver:
image: traefik:v2.9
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "127.0.0.1:8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- letsencrypt-certs:/letsencrypt/
- ./var/log:/data/log
command:
- "--log.level=DEBUG"
- "--log.filePath=/data/log/traefik.log"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.goorchids-ep.address=:443"
- "--entrypoints.goorchids-ep.http.tls=true"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
- "--certificatesresolvers.myresolver.acme.email=${LETSENCRYPT_EMAIL:[email protected]}"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
- "--entrypoints.web.address=:80"
- "--entrypoints.web.http.redirections.entrypoint.to=goorchids-ep"
- "--entrypoints.web.http.redirections.entrypoint.scheme=https"
networks:
- goorchirds
goorchids:
command: gunicorn goorchids.wsgi -b "0.0.0.0:8000" -w 3
environment:
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
AWS_STORAGE_BUCKET_NAME: "${AWS_STORAGE_BUCKET_NAME}"
GOBOTANY_DJANGO_SECRET_KEY: "${GOBOTANY_DJANGO_SECRET_KEY}"
# This variable is used by Go Botany just to set the
# IN_PRODUCTION Django setting, which will make use of
# bundled and minified staticfiles
PORT: define-to-set-in-production
REDIS_URL: redis://redis:6379
labels:
- "traefik.enable=true"
- "traefik.http.routers.goorchids.tls.certresolver=myresolver"
- "traefik.http.routers.goorchids.rule=Host(`${SERVER_NAME:-goorchids.localhost}`)"
- "traefik.http.routers.goorchids.entrypoints=goorchids-ep"
- "traefik.http.routers.goorchids.middlewares=add-compression"
- "traefik.http.middlewares.add-compression.compress=true"
worker:
build: .
image: ghcr.io/jazkarta/goorchids:latest
command: python worker.py
depends_on:
- redis
volumes:
- ./goorchids:/opt/goorchids/goorchids
- ./external:/opt/goorchids/external
environment:
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
AWS_STORAGE_BUCKET_NAME: "${AWS_STORAGE_BUCKET_NAME}"
GOBOTANY_DJANGO_SECRET_KEY: "${GOBOTANY_DJANGO_SECRET_KEY}"
REDIS_URL: redis://redis:6379
volumes:
letsencrypt-certs: