From 7704ef9e5b53af1ae206d42414ec4d7d180951ba Mon Sep 17 00:00:00 2001 From: hanemile Date: Sun, 19 Jul 2020 13:17:04 +0200 Subject: docker-compose --- docker-compose.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..fc95f44 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,46 @@ +version: "3" + +services: + freitagsfoo: + build: . + ports: + - "8085:8085" + volumes: + - "./config.yml:/config.yml" + depends_on: + - postgres + networks: + - database + + postgres: + image: postgres:12.1 + hostname: postgres + ports: + - "5432:5432" + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + volumes: + - postgres_volume:/var/lib/postgresql + networks: + - database + restart: unless-stopped + + pgadmin: + image: dpage/pgadmin4 + depends_on: + - postgres + ports: + - "5555:80" + environment: + PGADMIN_DEFAULT_EMAIL: pgadmin4@pgadmin.org + PGADMIN_DEFAULT_PASSWORD: admin + restart: unless-stopped + networks: + - database + +volumes: + postgres_volume: {} + +networks: + database: \ No newline at end of file -- cgit 1.4.1