33 lines
649 B
YAML
33 lines
649 B
YAML
services:
|
|
backend:
|
|
build: ./backend
|
|
container_name: astronome-backend
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./data:/data
|
|
environment:
|
|
- DATABASE_URL=sqlite:///data/astronome.db
|
|
- RUST_LOG=info
|
|
ports:
|
|
- 3001:3001
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
container_name: astronome-frontend
|
|
restart: unless-stopped
|
|
ports:
|
|
- 3000:80
|
|
depends_on:
|
|
- backend
|
|
|
|
nginx:
|
|
image: nginx:alpine
|
|
container_name: astronome-nginx
|
|
restart: unless-stopped
|
|
ports:
|
|
- 8081:80
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
|
depends_on:
|
|
- backend
|
|
- frontend |