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
|
# Discord bot token
|
||||||
settings.json
|
settings.json
|
||||||
|
|
||||||
|
.env
|
||||||
|
@ -2,7 +2,8 @@ services:
|
|||||||
anewdawn:
|
anewdawn:
|
||||||
image: ghcr.io/thelovinator1/anewdawn:latest
|
image: ghcr.io/thelovinator1/anewdawn:latest
|
||||||
container_name: anewdawn
|
container_name: anewdawn
|
||||||
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
- DISCORD_TOKEN=
|
- DISCORD_TOKEN=${DISCORD_TOKEN}
|
||||||
- OPENAI_TOKEN=
|
- OPENAI_TOKEN=${OPENAI_TOKEN}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
Reference in New Issue
Block a user