Rejigged the structure
This commit is contained in:
20
docker-compose.yml
Normal file
20
docker-compose.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
reactjs:
|
||||
build: ./react-site
|
||||
volumes:
|
||||
- ./react-site:/app
|
||||
- /app/node_modules # prevent overwriting
|
||||
ports:
|
||||
- "3000:3000"
|
||||
working_dir: /app
|
||||
command: bun dev
|
||||
|
||||
agent:
|
||||
build: ./agent
|
||||
volumes:
|
||||
- ./react-site:/workspace/react-site # same mount
|
||||
- /var/run/docker.sock:/var/run/docker.sock # for docker commands
|
||||
environment:
|
||||
- REACTJS_CONTAINER=reactjs
|
||||
working_dir: /app
|
||||
Reference in New Issue
Block a user