mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-25 03:53:19 +03:00
27 lines
524 B
YAML
27 lines
524 B
YAML
|
version: '3.8'
|
||
|
|
||
|
services:
|
||
|
app:
|
||
|
build:
|
||
|
context: .
|
||
|
dockerfile: Dockerfile
|
||
|
volumes:
|
||
|
- ../..:/workspaces:cached
|
||
|
command: sleep infinity
|
||
|
network_mode: service:db
|
||
|
environment:
|
||
|
DATABASE_URL: postgresql://affine:affine@db:5432/affine
|
||
|
|
||
|
db:
|
||
|
image: postgres:latest
|
||
|
restart: unless-stopped
|
||
|
volumes:
|
||
|
- postgres-data:/var/lib/postgresql/data
|
||
|
environment:
|
||
|
POSTGRES_PASSWORD: affine
|
||
|
POSTGRES_USER: affine
|
||
|
POSTGRES_DB: affine
|
||
|
|
||
|
volumes:
|
||
|
postgres-data:
|