Setup Nginx.
This commit is contained in:
+14
-2
@@ -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
|
||||
Reference in New Issue
Block a user