refactor: single container image, 4 deployment options in docs
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
services:
|
||||
backend:
|
||||
image: ${OCIR_REGION}.ocir.io/${OCIR_NAMESPACE}/oci-cis-agent-backend:${IMAGE_TAG:-latest}
|
||||
container_name: oci-agent-backend
|
||||
agent:
|
||||
image: ${OCIR_REGION:-us-ashburn-1}.ocir.io/${OCIR_NAMESPACE:-idi1o0a010nx}/oci-cis-agent:${IMAGE_TAG:-latest}
|
||||
container_name: oci-cis-agent
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- APP_SECRET=${APP_SECRET:?Set APP_SECRET in .env (openssl rand -hex 64)}
|
||||
@@ -10,12 +10,12 @@ services:
|
||||
- CORS_ORIGINS=${CORS_ORIGINS:-}
|
||||
- TZ=${TZ:-America/Sao_Paulo}
|
||||
- OCI_CLI_SUPPRESS_FILE_PERMISSIONS_WARNING=True
|
||||
ports:
|
||||
- "${PORT:-8080}:8080"
|
||||
volumes:
|
||||
- agent-data:/data
|
||||
networks:
|
||||
- agent-net
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/api/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
@@ -26,29 +26,6 @@ services:
|
||||
max-file: "3"
|
||||
mem_limit: 4g
|
||||
|
||||
frontend:
|
||||
image: ${OCIR_REGION}.ocir.io/${OCIR_NAMESPACE}/oci-cis-agent-frontend:${IMAGE_TAG:-latest}
|
||||
container_name: oci-agent-frontend
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- TZ=${TZ:-America/Sao_Paulo}
|
||||
ports:
|
||||
- "${PORT:-8080}:80"
|
||||
depends_on:
|
||||
- backend
|
||||
networks:
|
||||
- agent-net
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "5m"
|
||||
max-file: "3"
|
||||
mem_limit: 512m
|
||||
|
||||
volumes:
|
||||
agent-data:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
agent-net:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user