Setup Nginx.

This commit is contained in:
emil28092005
2026-01-14 04:50:21 +03:00
parent e883aac2e8
commit 6995906aa8
4 changed files with 102 additions and 2 deletions
+14 -2
View File
@@ -4,11 +4,23 @@ services:
shagram:
build: .
ports:
- "8080:8080"
- "8080"
volumes:
- ./data:/app/data
- ./static:/app/static
- ./migrations:/app/migrations
environment:
- DATABASE_PATH=/app/shagram.db
container_name: shagram-app
container_name: shagram-app
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
- ./nginx/certs:/etc/nginx/certs
depends_on:
- shagram
container_name: shagram-nginx