chore: add devcontainer config (#4974)

Co-authored-by: Reese <3253971+figadore@users.noreply.github.com>
This commit is contained in:
EYHNandReese authored and GitHub committed 2023-11-17 17:54:19 +08:00
1 parent ce2eeeffbe
commit 5fea0102fb
6 files changed
+86

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
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: