2021-07-02 23:12:08 +00:00
|
|
|
# Use postgres/example user/password credentials
|
|
|
|
version: '3.1'
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: postgres
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- database-data:/var/lib/postgresql/data/
|
|
|
|
env_file: .env
|
|
|
|
ports:
|
|
|
|
- 5432:5432
|
|
|
|
calendso:
|
2021-11-19 15:57:00 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
args:
|
|
|
|
- BASE_URL=${BASE_URL}
|
|
|
|
- NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL}
|
|
|
|
image: calendso/docker
|
2021-07-02 23:12:08 +00:00
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
2021-11-19 15:57:00 +00:00
|
|
|
env_file: .env
|
|
|
|
environment:
|
|
|
|
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
|
|
|
|
depends_on:
|
|
|
|
- db
|
2021-11-22 20:22:04 +00:00
|
|
|
# Optional use of Prisma Studio. In production, comment out or remove the section below to prevent unwanted access to your database.
|
2021-11-19 15:57:00 +00:00
|
|
|
studio:
|
|
|
|
image: calendso/docker
|
|
|
|
restart: always
|
|
|
|
ports:
|
2021-07-02 23:12:08 +00:00
|
|
|
- 5555:5555
|
|
|
|
env_file: .env
|
2021-10-27 17:04:26 +00:00
|
|
|
environment:
|
|
|
|
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
|
2021-07-02 23:17:44 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
2021-11-19 15:57:00 +00:00
|
|
|
command:
|
|
|
|
- npx
|
|
|
|
- prisma
|
|
|
|
- studio
|
2021-11-22 20:22:04 +00:00
|
|
|
# END SECTION: Optional use of Prisma Studio.
|
2021-07-02 23:12:08 +00:00
|
|
|
volumes:
|
2021-11-22 20:22:04 +00:00
|
|
|
database-data:
|