Skip to content

Commit

Permalink
use .env file for ports
Browse files Browse the repository at this point in the history
  • Loading branch information
CaKrome committed Jun 3, 2024
1 parent ea0df47 commit f12fa81
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PORT=8388
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

.env
config.json
File renamed without changes.
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ services:
dockerfile: Dockerfile
container_name: ss-rust
ports:
- "8388:8388/tcp"
- "8388:8388/udp"
- "${PORT}:${PORT}/tcp"
- "${PORT}:${PORT}/udp"
env_file: .env
volumes:
- type: bind
source: ./config.json
Expand Down

0 comments on commit f12fa81

Please sign in to comment.