feat:添加docker-compose
This commit is contained in:
parent
f5493ed8a1
commit
cb76380242
35
docker-compose.yml
Normal file
35
docker-compose.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
server:
|
||||||
|
image: git.mamahaha.work/sangge/tpre:base
|
||||||
|
volumes:
|
||||||
|
- ./src:/app
|
||||||
|
environment:
|
||||||
|
- server_address=http://server:8000
|
||||||
|
entrypoint:
|
||||||
|
- nohup
|
||||||
|
- python
|
||||||
|
- server.py
|
||||||
|
- &
|
||||||
|
node:
|
||||||
|
image: git.mamahaha.work/sangge/tpre:base
|
||||||
|
volumes:
|
||||||
|
- ./src:/app
|
||||||
|
environment:
|
||||||
|
- server_address=http://server:8000
|
||||||
|
entrypoint:
|
||||||
|
- nohup
|
||||||
|
- python
|
||||||
|
- node.py
|
||||||
|
- &
|
||||||
|
client:
|
||||||
|
image: git.mamahaha.work/sangge/tpre:base
|
||||||
|
volumes:
|
||||||
|
- ./src:/app
|
||||||
|
environment:
|
||||||
|
- server_address=http://server:8000
|
||||||
|
entrypoint:
|
||||||
|
- nohup
|
||||||
|
- python
|
||||||
|
- client.py
|
||||||
|
- &
|
Loading…
x
Reference in New Issue
Block a user