Skip to content

Commit

Permalink
Improve more configurability
Browse files Browse the repository at this point in the history
  • Loading branch information
tcyrus committed Aug 16, 2020
1 parent 005bb07 commit d22d964
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 6 additions & 0 deletions docker-compose.prod.yml
Expand Up @@ -3,5 +3,11 @@ version: '3.7'
services:
app:
network_mode: "bridge"
environment:
SYNCPLAY_TLS_PATH : "/app/cert"
volumes:
- ${SYNCPLAY_TLS_PATH}/privkey.pem:/app/cert/privkey.pem:ro
- ${SYNCPLAY_TLS_PATH}/cert.pem:/app/cert/cert.pem:ro
- ${SYNCPLAY_TLS_PATH}/chain.pem:/app/cert/chain.pem:ro
extra_hosts:
- "db:172.17.0.1"
7 changes: 1 addition & 6 deletions docker-compose.yml
Expand Up @@ -7,11 +7,6 @@ services:
environment:
SYNCPLAY_PASSWORD: "${SYNCPLAY_PASSWORD}"
SYNCPLAY_SALT: "${SYNCPLAY_SALT}"
SYNCPLAY_PORT: "${SYNCPLAY_PORT}"
SYNCPLAY_TLS_PATH : "/app/cert"
volumes:
- ${SYNCPLAY_TLS_PATH}/privkey.pem:/app/cert/privkey.pem:ro
- ${SYNCPLAY_TLS_PATH}/cert.pem:/app/cert/cert.pem:ro
- ${SYNCPLAY_TLS_PATH}/chain.pem:/app/cert/chain.pem:ro
SYNCPLAY_PORT: "${SYNCPLAY_PORT}"
ports:
- "${SYNCPLAY_PORT}:${SYNCPLAY_PORT}"
4 changes: 4 additions & 0 deletions example.env
@@ -0,0 +1,4 @@
SYNCPLAY_PASSWORD="wpi"
SYNCPLAY_PORT="8996"
SYNCPLAY_SALT="supersecretsalt"
SYNCPLAY_TLS_PATH="/etc/letsencrypt/live/foo.bar/"

0 comments on commit d22d964

Please sign in to comment.