diff --git a/.gitignore b/.gitignore
index d702ca8..3a261ba 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,3 +22,5 @@ go.work
 
 # Discord bot token
 settings.json
+
+.env
diff --git a/docker-compose.yml b/docker-compose.yml
index 7f7fa8c..e8cdcd5 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -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