-test environment
All checks were successful
Chore App Build and Push Docker Images / build-and-push (push) Successful in 1m38s
All checks were successful
Chore App Build and Push Docker Images / build-and-push (push) Successful in 1m38s
This commit is contained in:
@@ -2,23 +2,23 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
chore-test-app-backend: # Renamed for clarity
|
chore-test-app-backend: # Test backend service name
|
||||||
image: git.ryankegel.com:3000/ryan/backend:next-1.0.4-20260211
|
image: git.ryankegel.com:3000/ryan/backend:next-1.0.4-20260211 # Use dev tag
|
||||||
ports:
|
ports:
|
||||||
- "5001:5000" # Map external 5001 to internal 5000
|
- "5004:5000" # Host 5004 -> Container 5000
|
||||||
environment:
|
environment:
|
||||||
- FLASK_ENV=development
|
- FLASK_ENV=development
|
||||||
# Add other env vars, volumes, or networks as needed (mirror production but adjust ports)
|
# Add volumes, networks, etc., as needed
|
||||||
|
|
||||||
chore-test-app-frontend: # Renamed for clarity
|
chore-test-app-frontend: # Test frontend service name
|
||||||
image: git.ryankegel.com:3000/ryan/frontend:next-1.0.4-20260211
|
image: git.ryankegel.com:3000/ryan/frontend:next-1.0.4-20260211 # Use dev tag
|
||||||
ports:
|
ports:
|
||||||
- "443:443" # Map host 443 to container 443 for HTTPS
|
- "446:443" # Host 446 -> Container 443 (HTTPS)
|
||||||
environment:
|
environment:
|
||||||
- BACKEND_HOST=chore-test-app-backend # Override for test env
|
- BACKEND_HOST=chore-test-app-backend # Points to internal backend service
|
||||||
depends_on:
|
depends_on:
|
||||||
- chore-test-app-backend
|
- chore-test-app-backend
|
||||||
# If the frontend proxy needs to point to the dev backend, ensure the Nginx config uses the internal backend service name or IP
|
# Add volumes, networks, etc., as needed
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
chore-test-app-net:
|
chore-test-app-net:
|
||||||
|
|||||||
@@ -1,26 +1,32 @@
|
|||||||
# yaml
|
# yaml
|
||||||
version: '3.8'
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
chore-app-backend:
|
chore-app-backend: # Production backend service name
|
||||||
image: devserver.lan:5900/chore-app-backend:production
|
image: git.ryankegel.com:3000/ryan/backend:latest # Or specific version tag
|
||||||
container_name: chore-app-backend
|
container_name: chore-app-backend-prod # Added for easy identification
|
||||||
restart: unless-stopped
|
|
||||||
expose:
|
|
||||||
- "5000"
|
|
||||||
networks:
|
|
||||||
- chore-app-net
|
|
||||||
volumes:
|
|
||||||
- chore-app-backend-data:/app/data # persists backend data
|
|
||||||
|
|
||||||
chore-app-frontend:
|
|
||||||
image: devserver.lan:5900/chore-app-frontend:production
|
|
||||||
container_name: chore-app-frontend
|
|
||||||
restart: unless-stopped
|
|
||||||
ports:
|
ports:
|
||||||
- "4600:443"
|
- "5001:5000" # Host 5001 -> Container 5000
|
||||||
|
environment:
|
||||||
|
- FLASK_ENV=production
|
||||||
|
volumes:
|
||||||
|
- chore-app-backend-data:/app/data # Assuming backend data storage; adjust path as needed
|
||||||
networks:
|
networks:
|
||||||
- chore-app-net
|
- chore-app-net
|
||||||
|
# Add other volumes, networks, etc., as needed
|
||||||
|
|
||||||
|
chore-app-frontend: # Production frontend service name
|
||||||
|
image: git.ryankegel.com:3000/ryan/frontend:latest # Or specific version tag
|
||||||
|
container_name: chore-app-frontend-prod # Added for easy identification
|
||||||
|
ports:
|
||||||
|
- "443:443" # Host 443 -> Container 443 (HTTPS)
|
||||||
|
environment:
|
||||||
|
- BACKEND_HOST=chore-app-backend # Points to internal backend service
|
||||||
|
depends_on:
|
||||||
|
- chore-app-backend
|
||||||
|
networks:
|
||||||
|
- chore-app-net
|
||||||
|
# Add volumes, networks, etc., as needed
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
chore-app-net:
|
chore-app-net:
|
||||||
|
|||||||
Reference in New Issue
Block a user