36 lines
758 B
YAML
36 lines
758 B
YAML
services:
|
|
web:
|
|
image: git.georgew.dev/georgew/mission-control-web:latest
|
|
container_name: mc-web
|
|
restart: always
|
|
volumes:
|
|
- ./data:/app/data
|
|
environment:
|
|
- NODE_ENV=production
|
|
networks:
|
|
- web_traffic
|
|
|
|
worker:
|
|
build:
|
|
context: .
|
|
dockerfile: Worker.Dockerfile
|
|
image: git.georgew.dev/georgew/mission-control-worker:latest
|
|
container_name: mc-worker
|
|
restart: always
|
|
command: npx tsx scripts/update-space.ts
|
|
volumes:
|
|
- ./data:/app/data
|
|
environment:
|
|
- NODE_ENV=production
|
|
- NODE_OPTIONS=--dns-result-order=ipv4first
|
|
depends_on:
|
|
- web
|
|
dns:
|
|
- 8.8.8.8
|
|
- 1.1.1.1
|
|
networks:
|
|
- web_traffic
|
|
|
|
networks:
|
|
web_traffic:
|
|
external: true |