Fixed ca cert issue on api
This commit is contained in:
@@ -9,15 +9,23 @@ x-restart: &default_restart
|
||||
|
||||
name: aviation
|
||||
services:
|
||||
httpd:
|
||||
image: aviation-httpd:latest
|
||||
container_name: aviation-httpd
|
||||
nginx:
|
||||
# image: nginx
|
||||
image: aviation-nginx:latest
|
||||
container_name: aviation-nginx
|
||||
build:
|
||||
context: ./httpd
|
||||
context: ./nginx
|
||||
dockerfile: Dockerfile
|
||||
env_file: *env
|
||||
environment:
|
||||
SSL_CERT_PATH: /etc/nginx/ssl/localhost.crt
|
||||
SSL_CERT_KEY_PATH: /etc/nginx/ssl/localhost.key
|
||||
NGINX_HOST: ${NGINX_HOST:-localhost}
|
||||
ports:
|
||||
- "${HTTPD_PORT:-8080}:80"
|
||||
- "${NGINX_HTTP_PORT:-8080}:80"
|
||||
- "${NGINX_HTTPS_PORT:-8443}:443"
|
||||
volumes:
|
||||
- ./ssl:/etc/nginx/ssl/
|
||||
networks:
|
||||
- frontend
|
||||
- backend
|
||||
@@ -89,12 +97,15 @@ services:
|
||||
env_file: *env
|
||||
environment:
|
||||
API_HOST: 0.0.0.0
|
||||
SSL_CA_PATH: /ssl/ca.pem
|
||||
POSTGRES_HOST: aviation-postgres
|
||||
POSTGRES_PORT: 5432
|
||||
REDIS_HOST: aviation-redis
|
||||
REDIS_PORT: 6379
|
||||
MINIO_HOST: aviation-minio
|
||||
MINIO_PORT: 9000
|
||||
volumes:
|
||||
- ./ssl:/ssl
|
||||
ports:
|
||||
- "${API_PORT:-5000}:5000"
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user