添加 docker 启动配置文件

This commit is contained in:
CoderLambert
2022-09-03 19:57:41 +08:00
parent 6c9240cb1e
commit 8f74c096c1
+19
View File
@@ -0,0 +1,19 @@
# docker-compose.yml
version: "3.8"
services:
# Docker connection string: postgres://postgres:postgres@localhost:5432/
postgres:
image: postgres:13.5
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
postgres: