mirror of
https://github.com/Team4388/ScoutingApp2022.git
synced 2026-06-09 08:48:05 -06:00
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
scouting-webserver-prod:
|
|
container_name: "production"
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
build:
|
|
context: ./webserver
|
|
dockerfile: ./Dockerfile.prod
|
|
expose:
|
|
- 8080
|
|
ports:
|
|
- "8080:8080/tcp"
|
|
# - "80:80/tcp"
|
|
# - "443:443/tcp"
|
|
volumes:
|
|
- ./webserver/nginx:/etc/nginx/:ro
|
|
ssl-proxy:
|
|
image: fsouza/docker-ssl-proxy
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
environment:
|
|
- DOMAIN=10.43.88.1
|
|
- TARGET_PORT=8080
|
|
- TARGET_HOST=scouting-webserver-prod
|
|
- SSL_PORT:443
|
|
couchdb:
|
|
container_name: "scouting-couchdb"
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
build:
|
|
context: ./couchdb
|
|
dockerfile: ./Dockerfile
|
|
expose:
|
|
- 5984
|
|
ports:
|
|
- "5984:5984"
|
|
environment:
|
|
- COUCHDB_HOST=couchdb
|
|
- COUCHDB_PORT=5984
|
|
- COUCHDB_USER=${COUCHDB_USER}
|
|
- COUCHDB_PASSWORD=${COUCHDB_PASSWORD}
|
|
volumes:
|
|
- ./couchdb/db.local.ini:/opt/couchdb/etc/local.ini
|
|
- ./couchdb/data:/opt/couchdb/data
|
|
couch-ssl-proxy:
|
|
image: fsouza/docker-ssl-proxy
|
|
ports:
|
|
- "5985:5985"
|
|
environment:
|
|
- DOMAIN=10.43.88.1
|
|
- TARGET_PORT=5984
|
|
- TARGET_HOST=scouting-couchdb
|
|
- SSL_PORT:5985
|