Add files via upload
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Use postgres/example user/password credentials
|
# Use postgres/example user/password credentials; starts a postgres instance on port 5450 to use as a local db
|
||||||
version: '3.1'
|
version: '3.9'
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
database-data:
|
database-data:
|
||||||
@@ -11,13 +11,15 @@ networks:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
database:
|
database:
|
||||||
image: postgres
|
image: postgres # profiles: ["withpostgres"] only starts when specifying this profile
|
||||||
restart: always
|
container_name: calendso-db
|
||||||
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- database-data:/var/lib/postgresql/data/
|
- database-data:/var/lib/postgresql/data/
|
||||||
env_file: .env
|
env_file: .env
|
||||||
networks:
|
networks:
|
||||||
- stack
|
- stack
|
||||||
|
- calendso-stack
|
||||||
|
|
||||||
calcom:
|
calcom:
|
||||||
build:
|
build:
|
||||||
@@ -34,29 +36,41 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- stack
|
- stack
|
||||||
|
- calendso-stack
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- ${PORT-3000}:3000
|
||||||
env_file: .env
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
|
- DATABASE_URL=${DATABASE_URL}
|
||||||
|
- NODE_ENV=development
|
||||||
|
- POSTGRES_PASSWORD = ""
|
||||||
|
- POSTGRES_HOST_AUTH_METHOD = trust
|
||||||
depends_on:
|
depends_on:
|
||||||
- database
|
- database # comment out when using non-docker database (=enabled "withpostgres" profile)
|
||||||
|
volumes:
|
||||||
|
- "./calendso:/app/"
|
||||||
|
- "./scripts:/app/scripts"
|
||||||
|
|
||||||
# Optional use of Prisma Studio. In production, comment out or remove the section below to prevent unwanted access to your database.
|
# Optional use of Prisma Studio. To use *with* Prisma Studio:
|
||||||
|
# docker-compose --profile withstudio up
|
||||||
studio:
|
studio:
|
||||||
image: calendso/calendso:latest
|
image: calendso/calendso:latest
|
||||||
restart: always
|
container_name: calendso-studio
|
||||||
|
restart: unless-stopped
|
||||||
|
profiles: ["withstudio"] # only starts when specifying this profile
|
||||||
networks:
|
networks:
|
||||||
- stack
|
- stack
|
||||||
|
- calendso-stack
|
||||||
ports:
|
ports:
|
||||||
- 5555:5555
|
- 5555:5555
|
||||||
|
volumes:
|
||||||
|
db_data:
|
||||||
env_file: .env
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
|
- DATABASE_URL=${DATABASE_URL}
|
||||||
depends_on:
|
depends_on:
|
||||||
- database
|
- database # comment out when using non-docker database (=enabled "withpostgres" profile)
|
||||||
command:
|
command:
|
||||||
- npx
|
- npx
|
||||||
- prisma
|
- prisma
|
||||||
- studio
|
- studio
|
||||||
# END SECTION: Optional use of Prisma Studio.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user