add build args and break out Prisma Studio

This commit is contained in:
Colin Griffin 2021-11-19 10:57:00 -05:00
parent 970f7bed08
commit 6c6da94fa6

View File

@ -10,15 +10,34 @@ services:
ports: ports:
- 5432:5432 - 5432:5432
calendso: calendso:
build: . build:
context: .
dockerfile: Dockerfile
args:
- BASE_URL=${BASE_URL}
- NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL}
image: calendso/docker
restart: always restart: always
ports: ports:
- 3000:3000 - 3000:3000
env_file: .env
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
depends_on:
- db
studio:
image: calendso/docker
restart: always
ports:
- 5555:5555 - 5555:5555
env_file: .env env_file: .env
environment: environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB} - DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
depends_on: depends_on:
- db - db
command:
- npx
- prisma
- studio
volumes: volumes:
database-data: database-data: