From c3b183758960b42de6477de42df693ad9ca06b35 Mon Sep 17 00:00:00 2001 From: Jordan Knott Date: Sun, 19 Jul 2020 16:10:37 -0500 Subject: [PATCH] change: update docker-compose.dev.yml with new web & postgres service --- docker-compose.dev.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index c06087c..634f91c 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -1,5 +1,26 @@ version: "3" services: + web: + build: . + ports: + - "3333:3333" + depends_on: + - postgres + networks: + - citadel-test + postgres: + image: postgres:12.3-alpine + restart: always + networks: + - citadel-test + environment: + POSTGRES_USER: citadel + POSTGRES_PASSWORD: citadel_test + POSTGRES_DB: citadel + volumes: + - citadel-postgres:/var/lib/postgresql/data + ports: + - 5432:5432 mailhog: image: mailhog/mailhog:latest restart: always @@ -17,3 +38,11 @@ services: restart: always ports: - 11211:11211 + +volumes: + citadel-postgres: + external: false + +networks: + citadel-test: + driver: bridge