Dockerize local env

This commit is contained in:
2024-12-17 11:47:29 +01:00
parent 14db6d5fa5
commit 986f063857

View File

@@ -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: