-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.landing.yml
More file actions
58 lines (54 loc) · 1.7 KB
/
Copy pathdocker-compose.landing.yml
File metadata and controls
58 lines (54 loc) · 1.7 KB
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
# Landing/Marketing Site with Nginx Reverse Proxy
#
# Deploy this alongside docker-compose.yml to add:
# - Lightweight landing container serving marketing pages at root
# - Nginx reverse proxy routing traffic appropriately
#
# Usage on Dokploy or similar platforms:
# 1. Deploy docker-compose.yml first (main app)
# 2. Deploy this file separately (landing + nginx)
# 3. Point your domain to nginx port (80)
services:
landing:
build:
context: .
dockerfile: Dockerfile.landing
command: gunicorn --bind 0.0.0.0:${LANDING_PORT:-8001} --workers 2 --timeout 60 --access-logfile - --error-logfile - --log-level info landing_wsgi:application
volumes:
- ./:/app
- static_volume:/app/staticfiles
ports:
- "${LANDING_PORT:-8001}:${LANDING_PORT:-8001}"
env_file:
- .env
environment:
- LANDING_PORT=${LANDING_PORT:-8001}
- SITE_DOMAIN=${SITE_DOMAIN:-www.blik360.com}
restart: unless-stopped
networks:
- blik_default # Connect to main app network
nginx:
image: nginx:alpine
expose:
- "8111"
volumes:
- ./nginx.conf.template:/etc/nginx/nginx.conf.template:ro
- ./docker-entrypoint-nginx.sh:/docker-entrypoint-nginx.sh:ro
- static_volume:/app/staticfiles:ro
- media_volume:/app/mediafiles:ro
environment:
- NGINX_PORT=${NGINX_PORT:-80}
- PORT=${PORT:-8000}
- LANDING_PORT=${LANDING_PORT:-8001}
depends_on:
- landing
entrypoint: ["/docker-entrypoint-nginx.sh"]
restart: unless-stopped
networks:
- blik_default # Connect to main app network
# Create volumes and network for standalone landing deployment
volumes:
static_volume:
media_volume:
networks:
blik_default: