1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-14 17:18:33 +00:00

Downgrade required docker-compose version as we do not use any specific 3.X features anymore + add passthrough env variables for the PUBLIC_URL's to make them easier to set without having to modify the docker-compose.yml

This commit is contained in:
Nigel Gott 2021-04-30 15:07:01 +01:00
parent ed34899093
commit b4299f8efc
2 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,4 @@
version: "3.7"
version: "3"
services:

View file

@ -1,4 +1,4 @@
version: "3.7"
version: "3"
services:
db:
@ -40,6 +40,8 @@ services:
context: .
image: baserow_backend:latest
environment:
- PUBLIC_BACKEND_URL=${PUBLIC_BACKEND_URL:-http://localhost:8000}
- PUBLIC_WEB_FRONTEND_URL=${PUBLIC_BACKEND_URL:-http://localhost:3000}
- MIGRATE_ON_STARTUP=${MIGRATE_ON_STARTUP:-true}
- SYNC_TEMPLATES_ON_STARTUP=${SYNC_TEMPLATES_ON_STARTUP:-true}
- DATABASE_USER=${DATABASE_USER:-baserow}
@ -77,6 +79,8 @@ services:
dockerfile: ./web-frontend/Dockerfile
image: baserow_web-frontend:latest
environment:
- PUBLIC_BACKEND_URL=${PUBLIC_BACKEND_URL:-http://localhost:8000}
- PUBLIC_WEB_FRONTEND_URL=${PUBLIC_BACKEND_URL:-http://localhost:3000}
- ADDITIONAL_MODULES
ports:
- "${WEB_FRONTEND_PORT:-3000}:3000"