-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.prod.yml
45 lines (40 loc) · 1.1 KB
/
docker-compose.prod.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
version: '3.5'
# THESE OVERRIDES ARE FOR PRODUCTION! DON'T USE THIS IN DEVELOPMENT!
services:
django:
networks:
- hosting_network
volumes:
- ./_app:/usr/src/app
# Enable this if you decide to use the `caddy` service
# - static_files_volume:/usr/src/app/static
environment:
- PROD_HOST_NAME
# caddy:
# image: caddy:2.6.2-alpine
# restart: unless-stopped
# ports:
# - "80:80"
# - "443:443"
# - "443:443/udp"
# volumes:
# - $PWD/_caddy/Caddyfile:/etc/caddy/Caddyfile
# - static_files_volume:/usr/share/caddy/static
# - caddy_data:/data
# - caddy_config:/config
# networks:
# - hosting_network
# environment:
# - PROD_HOST_NAME
# cloudflaretunnel:
# image: cloudflare/cloudflared:2023.1.0
# entrypoint: ["cloudflared", "tunnel", "--no-autoupdate", "run", "--token", "$CLOUDFLARE_TUNNEL_TOKEN"]
# networks:
# - hosting_network
networks:
hosting_network:
# Enable these if you decide to use the `caddy` service
# volumes:
# static_files_volume:
# caddy_data:
# caddy_config: