Files
todo-tests/docker-compose.yml
Julien Valverdé 2497aaa236 Docker setup work
2024-07-16 04:14:30 +02:00

36 lines
686 B
YAML

x-service-base: &service-base
user: ${UID:?UID missing}:${GID:?GID missing}
tty: true
x-service-bun: &service-bun
<<: *service-base
image: oven/bun
x-volume-app: &volume-app ./:/app/
services:
server:
<<: *service-bun
container_name: server
volumes:
- *volume-app
working_dir: /app/packages/server
ports:
- 80:80
env_file: .env
environment:
NODE_ENV: development
HTTP_PORT: 80
entrypoint: ["bun", "src/index.ts"]
webui:
<<: *service-bun
container_name: webui
volumes:
- *volume-app
working_dir: /app/packages/webui
environment:
NODE_ENV: development
entrypoint: ["bun", "dev"]