Load Docker compose env vars from .env
This commit is contained in:
parent
f02275df19
commit
57f3d7e24f
2 changed files with 5 additions and 2 deletions
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue