Skip to content

Commit 9600bf0

Browse files
committed
move prd secret to docker secret
1 parent e720697 commit 9600bf0

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

docker-compose.prod.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ services:
55
restart: unless-stopped
66
ports:
77
- "127.0.0.1:5000:5000"
8+
secrets:
9+
- flask_secret
810
environment:
11+
- FLASK_SECRET_KEY_FILE=/run/secrets/flask_secret
912
- ENV=prod
1013
- FLASK_ENV=production
11-
- FLASK_SECRET_KEY=${FLASK_SECRET_KEY}
1214
- GOOGLE_CLOUD_PROJECT=${GOOGLE_CLOUD_PROJECT}
1315
- GOOGLE_CLOUD_LOCATION=${GOOGLE_CLOUD_LOCATION}
1416
- GOOGLE_APPLICATION_CREDENTIALS=/app/secrets/google-creds.json
@@ -37,6 +39,10 @@ services:
3739
networks:
3840
- tenantfirstaid
3941

42+
secrets:
43+
flask_secret:
44+
external: true
45+
4046
volumes:
4147
google-creds:
4248
external: true

0 commit comments

Comments
 (0)