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:
|
|
|
|
build: .
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
- 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-07-02 23:12:08 +00:00
|
|
|
volumes:
|
|
|
|
database-data:
|