Files
shagram/deploy/shagram/compose.yaml
T
2026-01-30 11:54:52 +03:00

29 lines
619 B
YAML

services:
shagram:
image: ${APP_IMAGE:-shagram:local}
build:
context: ../..
container_name: shagram-app
environment:
- WS_ALLOWED_ORIGINS=https://localhost,http://localhost
- DATABASE_PATH=/app/data/shagram.db
- JWT_SECRET=${JWT_SECRET}
volumes:
- shagram_data:/app/data
expose:
- "8080"
nginx:
image: nginx:alpine
container_name: shagram-nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d:ro
- ./nginx/certs:/etc/nginx/certs:ro
depends_on:
- shagram
volumes:
shagram_data: