update configuration docker setup for data platform
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
x-common-configs: &common-config
|
||||
extra_hosts:
|
||||
- "dev.sriphat.com:192.168.100.9"
|
||||
pull_policy: ${DOCKER_PULL_POLICY:-missing}
|
||||
|
||||
services:
|
||||
apiservice:
|
||||
build: .
|
||||
#build: .
|
||||
image: 03-apiservice-apiservice:latest
|
||||
container_name: apiservice
|
||||
env_file:
|
||||
- .env
|
||||
@@ -17,6 +23,13 @@ services:
|
||||
- ADMIN_SECRET_KEY=${ADMIN_SECRET_KEY}
|
||||
- ADMIN_USERNAME=${ADMIN_USERNAME}
|
||||
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||
- API_KEY_ENC_SECRET=${ADMIN_SECRET_KEY}
|
||||
- DEBUG_AUTH=${DEBUG_AUTH:-false}
|
||||
- KEYCLOAK_SERVER_URL=${KEYCLOAK_SERVER_URL}
|
||||
- KEYCLOAK_REALM=${KEYCLOAK_REALM}
|
||||
- KEYCLOAK_CLIENT_ID=${API_KEYCLOAK_CLIENT_ID}
|
||||
- KEYCLOAK_CLIENT_SECRET=${API_KEYCLOAK_CLIENT_SECRET}
|
||||
- KEYCLOAK_REDIRECT_URI=${API_KEYCLOAK_REDIRECT_URI}
|
||||
- LOG_LEVEL=debug
|
||||
ports:
|
||||
- "8040:8040"
|
||||
@@ -25,6 +38,7 @@ services:
|
||||
volumes:
|
||||
- ./app:/app/app
|
||||
- .env:/app/.env
|
||||
- ./data/uploads:/data/uploads
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8040/apiservice/docs"]
|
||||
@@ -32,6 +46,9 @@ services:
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
# extra_hosts:
|
||||
# - "dev.sriphat.com:192.168.100.9"
|
||||
<<: *common-config
|
||||
|
||||
networks:
|
||||
shared_data_network:
|
||||
|
||||
Reference in New Issue
Block a user