From 6e8a1117ddef390453d6b695c301d7f4d219f947 Mon Sep 17 00:00:00 2001 From: Melonai Date: Tue, 12 Jan 2021 18:04:30 +0100 Subject: Full cacheable Docker deployment with database --- docker-compose.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docker-compose.yml (limited to 'docker-compose.yml') diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..5195255 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,26 @@ +version: "3.8" +services: + server: + build: + context: . + container_name: shorest-server + ports: + - "127.0.0.1:${PORT}:${PORT}" + depends_on: + - postgres + links: + - postgres:postgres + environment: + - PORT + - POSTGRES_PASSWORD + postgres: + image: "postgres:alpine" + container_name: shorest-postgres + volumes: + - database:/var/lib/postgresql/data + environment: + - POSTGRES_DB=shorest + - POSTGRES_PASSWORD + +volumes: + database: -- cgit 1.4.1