pass .env in docker-compose
Marco Andronaco andronacomarco@gmail.com
Tue, 16 Jan 2024 10:46:58 +0100
2 files changed,
4 insertions(+),
4 deletions(-)
M
docker-compose.simple.yaml
→
docker-compose.simple.yaml
@@ -6,5 +6,5 @@ container_name: fixyoutube-go
restart: unless-stopped ports: - 3000:3000 - environment: - - API_KEY=${API_KEY} + env_file: + - .env
M
docker-compose.yaml
→
docker-compose.yaml
@@ -4,8 +4,8 @@ build: .
image: ghcr.io/birabittoh/fixyoutube-go:main container_name: fixyoutube-go restart: unless-stopped - environment: - - API_KEY=${API_KEY} + env_file: + - .env swag: image: ghcr.io/linuxserver/swag container_name: swag