28 lines
701 B
YAML
28 lines
701 B
YAML
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: ./Dockerfile
|
|
|
|
nginx:
|
|
image: nginx:latest
|
|
volumes:
|
|
- './nginx/spacerace.systems.nginx.conf:/etc/nginx/conf.d/default.conf'
|
|
- '/etc/letsencrypt:/etc/letsencrypt'
|
|
- './srv:/srv/spacerace'
|
|
ports:
|
|
- '80:80'
|
|
- '443:443'
|
|
|