nginx setup

This commit is contained in:
ntr committed 2023-08-24 15:20:08 +10:00
1 parent 87ff6d072b
commit 579292460a
7 files changed
+62 -21

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
services:
pg:
extends:
file: common.yaml
service: pg
server:
ports:
- '40080:80'
depends_on:
- 'pg'
environment:
CONNECTIONSTRINGS__SPACERACE: "Server=pg;Port=5432;Database=${POSTGRES_DB};User Id=${POSTGRES_USER};Password=${POSTGRES_PASSWORD}"
build:
context: ./Server
dockerfile: ./Server/Dockerfile
nginx:
image: nginx:latest
volumes:
- './nginx/spacerace.systems.nginx.conf:/etc/nginx/conf.d/default.conf'
- '/etc/letsencrypt:/etc/letsencrypt'
ports:
- '80:80'
- '443:443'