summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..a52fa93
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,41 @@
+version: "3.7"
+
+services:
+ db:
+ image: postgres:12-alpine
+ tty: true
+ environment:
+ POSTGRES_PASSWORD: postgres
+ ports:
+ - 5432:5432
+ volumes:
+ - dbdata:/var/lib/postgresql/data
+
+ backend:
+ build: backend
+ tty: true
+ environment:
+ DATABASE_HOST: db
+ DATABASE_DB: postgres
+ DATABASE_USER: postgres
+ DATABASE_PASSWORD: postgres
+ ports:
+ - 4000:4000
+ volumes:
+ - ./backend/src:/app/src
+ - ./backend/migrations:/app/migrations
+ depends_on:
+ - db
+
+ frontend:
+ build: frontend
+ tty: true
+ environment:
+ REACT_APP_API_BASE_URL: http://localhost:4000
+ ports:
+ - 3000:3000
+ volumes:
+ - ./frontend/src:/app/src
+
+volumes:
+ dbdata: