major fixes
This commit is contained in:
+3
-47
@@ -1,4 +1,3 @@
|
||||
version: '3.8'
|
||||
|
||||
# ==========================================
|
||||
# CoopCredits Production Docker Compose
|
||||
@@ -71,7 +70,7 @@ services:
|
||||
container_name: coop-backend
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- DATABASE_URL=postgresql://coop:${POSTGRES_PASSWORD:-coop_secure_password}@postgres:5432/coop_credits?schema=public
|
||||
- DATABASE_URL=postgresql://coop:$POSTGRES_PASSWORD@postgres:5432/coop_credits?schema=public
|
||||
- REDIS_URL=redis://:${REDIS_PASSWORD:-redis_secure_password}@redis:6379
|
||||
- PORT=3002
|
||||
- JWT_SECRET=${JWT_SECRET}
|
||||
@@ -82,7 +81,7 @@ services:
|
||||
- PLEX_CLIENT_SECRET=${PLEX_CLIENT_SECRET}
|
||||
- PLEX_REDIRECT_URI=${PLEX_REDIRECT_URI:-https://coop.hobokenchicken.com/auth/callback}
|
||||
# Tautulli (172.20.1.255:8181)
|
||||
- TAUTULLI_URL=http://172.20.1.255:8181
|
||||
- TAUTULLI_URL=http://172.20.1.225:8181
|
||||
- TAUTULLI_API_KEY=${TAUTULLI_API_KEY}
|
||||
- TAUTULLI_WEBHOOK_SECRET=${TAUTULLI_WEBHOOK_SECRET}
|
||||
# Overseer (172.20.1.225:5055)
|
||||
@@ -139,7 +138,7 @@ services:
|
||||
- NEXT_PUBLIC_SOLANA_NETWORK=devnet
|
||||
- NEXT_PUBLIC_SOLANA_RPC_URL=https://api.devnet.solana.com
|
||||
ports:
|
||||
- "0.0.0.0:3000:3000" # Only accessible via Nginx
|
||||
- "0.0.0.0:3000:3000"
|
||||
depends_on:
|
||||
- backend
|
||||
networks:
|
||||
@@ -150,49 +149,6 @@ services:
|
||||
options:
|
||||
max-size: "50m"
|
||||
max-file: "5"
|
||||
|
||||
# ==========================================
|
||||
# Nginx Reverse Proxy
|
||||
# ==========================================
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
container_name: coop-nginx
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./docker/nginx/nginx.prod.conf:/etc/nginx/nginx.conf:ro
|
||||
- ./docker/nginx/ssl:/etc/nginx/ssl:ro
|
||||
- ./docker/nginx/logs:/var/log/nginx
|
||||
# Let's Encrypt certificates (if using certbot)
|
||||
- ./docker/nginx/letsencrypt:/etc/letsencrypt:ro
|
||||
- ./docker/nginx/www:/var/www/certbot:ro
|
||||
depends_on:
|
||||
- frontend
|
||||
- backend
|
||||
networks:
|
||||
- coop-internal
|
||||
restart: unless-stopped
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "50m"
|
||||
max-file: "5"
|
||||
|
||||
# ==========================================
|
||||
# Certbot (for Let's Encrypt SSL)
|
||||
# ==========================================
|
||||
certbot:
|
||||
image: certbot/certbot
|
||||
container_name: coop-certbot
|
||||
volumes:
|
||||
- ./docker/nginx/letsencrypt:/etc/letsencrypt
|
||||
- ./docker/nginx/www:/var/www/certbot
|
||||
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|
||||
networks:
|
||||
- coop-internal
|
||||
restart: unless-stopped
|
||||
|
||||
# ==========================================
|
||||
# Volumes
|
||||
# ==========================================
|
||||
|
||||
Reference in New Issue
Block a user