From c4d0e13203f1b0cd61266d9627c12dfb6d3d092f Mon Sep 17 00:00:00 2001 From: Fernando da Silva Sousa Date: Wed, 8 Nov 2023 12:58:33 -0300 Subject: [PATCH] =?UTF-8?q?Corrige=20restart=20autom=C3=A1tico=20de=20cont?= =?UTF-8?q?ainer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/docker-compose.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 deploy/docker-compose.yml diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml new file mode 100644 index 0000000..9b76163 --- /dev/null +++ b/deploy/docker-compose.yml @@ -0,0 +1,27 @@ +version: '3.8' + +services: + planningpoker: + image: planningpoker:latest + build: + context: ../ + dockerfile: deploy/Dockerfile + env_file: + - .env + ports: + - "${APP_PORT:-80}:80" + depends_on: + - db + + db: + image: postgres:13 + environment: + POSTGRES_USER: ${DB_USERNAME:-postgres} + POSTGRES_PASSWORD: ${DB_PASSWORD:-password} + POSTGRES_DB: ${DB_DATABASE:-planningpoker} + volumes: + - planningpoker-postgres:/var/lib/postgresql/data + +volumes: + planningpoker-postgres: + driver: local