Improve the construction method

This commit is contained in:
Rafi
2023-02-24 14:48:39 +08:00
parent 03d7dc2589
commit d96b5ad26a
6 changed files with 54 additions and 120 deletions

View File

@@ -1,8 +1,31 @@
version: '3'
services:
app:
client:
build:
context: .
dockerfile: ./Dockerfile
environment:
- SERVER_DOMAIN=http://backend:8000
depends_on:
- backend
volumes:
- backend_static:/app/static
ports:
- '${APP_PORT:-80}:80'
- '80:80'
networks:
- chatgpt_ui_network
backend:
image: 'wongsaang/chatgpt-ui-server:latest'
volumes:
- backend_static:/app/static
ports:
- '8000:8000'
networks:
- chatgpt_ui_network
networks:
chatgpt_ui_network:
driver: bridge
volumes:
backend_static: