24 lines
513 B
YAML
24 lines
513 B
YAML
# 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:
|
|
build: .
|
|
restart: always
|
|
ports:
|
|
- 3000:3000
|
|
- 5555:5555
|
|
env_file: .env
|
|
environment:
|
|
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
|
|
depends_on:
|
|
- db
|
|
volumes:
|
|
database-data: |