41 lines
No EOL
807 B
YAML
41 lines
No EOL
807 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
app:
|
|
build: .
|
|
container_name: taobin-image-container
|
|
ports:
|
|
- "8125:8125"
|
|
environment:
|
|
- PYTHONUNBUFFERED=1
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- shared-repo:/usr/src/app
|
|
# - ~/repo/taobin_project:/taobin_project
|
|
restart: always
|
|
command: uvicorn main:app --host 0.0.0.0 --port 8125
|
|
networks:
|
|
- kong-net
|
|
|
|
nginx:
|
|
image: nginx:latest
|
|
container_name: nginx-image-container
|
|
volumes:
|
|
- shared-repo:/usr/src/app
|
|
# - ~/repo/taobin_project:/taobin_project
|
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
|
ports:
|
|
- "8126:80"
|
|
networks:
|
|
- kong-net
|
|
|
|
networks:
|
|
kong-net:
|
|
external: true
|
|
name: kong-api-gateway_kong-ee-net
|
|
|
|
volumes:
|
|
shared-repo:
|
|
external: true
|
|
|