Skip to content

Commit

Permalink
Use .env file for docker compose with all variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Dahlgren authored and Brett committed Jul 24, 2021
1 parent e921ed3 commit 23b80b0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
16 changes: 14 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
STEAMUSER=id-not-email
STEAMPASSWORD=password
ARMA_BINARY=arma3server_x64
ARMA_CDLC=
ARMA_CONFIG=main.cfg
ARMA_LIMITFPS=100
ARMA_PROFILE=main
ARMA_WORLD=empty
HEADLESS_CLIENTS=0
MODS_LOCAL=true
MODS_PRESET=
PORT=2302
STEAM_BRANCH=public
STEAM_BRANCH_PASSWORD=
STEAM_PASSWORD=password
STEAM_USER=id-not-email
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ An Arma 3 Dedicated Server. Updates to the latest version every time it is resta

Use the docker-compose.yml file inside a folder. It will automatically create 4 folders in which the missions, configs, mods and servermods can be loaded.

Copy the `.env.example` file to `.env`, containing at least `STEAMUSER` and `STEAMPASSWORD`.
Copy the `.env.example` file to `.env`, containing at least `STEAM_USER` and `STEAM_PASSWORD`.

Use `docker-compose start` to start the server.

Expand Down
5 changes: 1 addition & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,5 @@ services:
- './configs:/arma3/configs'
- './mods:/arma3/mods'
- './servermods:/arma3/servermods'
environment:
- ARMA_CONFIG=main.cfg
- STEAM_USER=${STEAMUSER}
- STEAM_PASSWORD=${STEAMPASSWORD}
env_file: .env
restart: unless-stopped

0 comments on commit 23b80b0

Please sign in to comment.