add build args and break out Prisma Studio
This commit is contained in:
parent
970f7bed08
commit
6c6da94fa6
@ -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:
|
Loading…
Reference in New Issue
Block a user