aboutsummaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..2d2576a
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,21 @@
+version: "3.8"
+services:
+ ihatemoney:
+ build:
+ context: .
+ dockerfile: Dockerfile
+ restart: unless-stopped
+ ports:
+ - 18000:8000
+ environment:
+ SQLALCHEMY_DATABASE_URI: "postgresql://ihatemoney:ihatemoney@db/ihatemoney?client_encoding=utf8"
+ db:
+ image: postgres:13
+ restart: unless-stopped
+ environment:
+ POSTGRES_USER: "ihatemoney"
+ POSTGRES_PASSWORD: "ihatemoney"
+ POSTGRES_DB: "ihatemoney"
+ PGDATA: "/var/lib/postgresql/data/pgdata"
+ volumes:
+ - ./db:/var/lib/postgresql/data/pgdata