2024-06-19 19:23:01 +08:00
|
|
|
|
|
|
|
services:
|
2024-06-20 14:55:36 +08:00
|
|
|
base:
|
|
|
|
build: ./docker/base
|
|
|
|
image: base
|
|
|
|
|
2024-06-19 19:23:01 +08:00
|
|
|
base-dm:
|
|
|
|
build: ./docker/base-dm
|
|
|
|
image: base-dm
|
2024-06-20 14:55:36 +08:00
|
|
|
depends_on:
|
|
|
|
- base
|
2024-06-19 19:23:01 +08:00
|
|
|
|
|
|
|
build-dmpython:
|
|
|
|
build: ./docker/build-dmpython
|
|
|
|
image: build-dmpython
|
|
|
|
depends_on:
|
|
|
|
- base-dm
|
|
|
|
|
|
|
|
build-frontend:
|
|
|
|
build: ./app-dm
|
|
|
|
image: build-frontend
|
|
|
|
|
|
|
|
flask-app:
|
|
|
|
build: ./python
|
|
|
|
restart: always
|
2024-07-01 10:43:22 +08:00
|
|
|
image: flask-app
|
2024-06-19 19:23:01 +08:00
|
|
|
depends_on:
|
|
|
|
- base-dm
|
|
|
|
ports:
|
|
|
|
- '8000:8000'
|
2024-07-01 10:43:22 +08:00
|
|
|
- '8765:8765'
|
2024-07-03 19:02:42 +08:00
|
|
|
command: gunicorn -w 3 -t 60 -b 0.0.0.0:8000 app:app
|
2024-06-19 19:23:01 +08:00
|
|
|
|
2024-07-02 13:00:00 +08:00
|
|
|
code-server:
|
|
|
|
build: ./docker/code-server
|
|
|
|
restart: always
|
|
|
|
image: code-server
|
|
|
|
depends_on:
|
|
|
|
- build-dmpython
|
|
|
|
ports:
|
|
|
|
- '8443:8443'
|
|
|
|
- '5000:5000'
|
|
|
|
- '3000:3000'
|
|
|
|
|