Load Docker compose env vars from .env
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -22,3 +22,5 @@ go.work
|
||||
|
||||
# Discord bot token
|
||||
settings.json
|
||||
|
||||
.env
|
||||
|
@ -2,7 +2,8 @@ services:
|
||||
anewdawn:
|
||||
image: ghcr.io/thelovinator1/anewdawn:latest
|
||||
container_name: anewdawn
|
||||
env_file: .env
|
||||
environment:
|
||||
- DISCORD_TOKEN=
|
||||
- OPENAI_TOKEN=
|
||||
- DISCORD_TOKEN=${DISCORD_TOKEN}
|
||||
- OPENAI_TOKEN=${OPENAI_TOKEN}
|
||||
restart: unless-stopped
|
||||
|
Reference in New Issue
Block a user