mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
Dockerize local env
This commit is contained in:
@@ -7,22 +7,30 @@ services:
|
|||||||
- 1250:1250
|
- 1250:1250
|
||||||
volumes:
|
volumes:
|
||||||
- model-cache:/root/.cache
|
- model-cache:/root/.cache
|
||||||
environment: ENTRYPOINT=server
|
environment:
|
||||||
|
ENTRYPOINT: server
|
||||||
worker:
|
worker:
|
||||||
build:
|
build:
|
||||||
context: server
|
context: server
|
||||||
volumes:
|
volumes:
|
||||||
- model-cache:/root/.cache
|
- model-cache:/root/.cache
|
||||||
environment: ENTRYPOINT=worker
|
environment:
|
||||||
|
ENTRYPOINT: worker
|
||||||
redis:
|
redis:
|
||||||
image: redis:7.2
|
image: redis:7.2
|
||||||
ports:
|
ports:
|
||||||
- 6379:6379
|
- 6379:6379
|
||||||
web:
|
web:
|
||||||
build:
|
image: node:18
|
||||||
context: www
|
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- "3000:3000"
|
||||||
|
command: sh -c "yarn install && yarn dev"
|
||||||
|
restart: unless-stopped
|
||||||
|
working_dir: /app
|
||||||
|
volumes:
|
||||||
|
- ./www:/app/
|
||||||
|
env_file:
|
||||||
|
- ./www/.env.local
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
model-cache:
|
model-cache:
|
||||||
|
|||||||
Reference in New Issue
Block a user