From eeb6327046f3784dbdc68bcbacc82b9b7b1d90b7 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Mon, 19 Jun 2023 15:37:21 -0700 Subject: [PATCH] docker compose was updated --- docker-compose.dev.yaml | 18 ++++++++++++++++++ ...compose.yaml => docker-compose.example.yaml | 8 +------- 2 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 docker-compose.dev.yaml rename docker-compose.yaml => docker-compose.example.yaml (93%) diff --git a/docker-compose.dev.yaml b/docker-compose.dev.yaml new file mode 100644 index 0000000..b0c094d --- /dev/null +++ b/docker-compose.dev.yaml @@ -0,0 +1,18 @@ +# docker compose -f docker-compose.dev.yaml up -d + +version: "3" + +volumes: + db: + +services: + db: + image: postgres:latest + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_DB: postgres + ports: + - "5432:5432" + volumes: + - db:/var/lib/postgresql/data \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.example.yaml similarity index 93% rename from docker-compose.yaml rename to docker-compose.example.yaml index 372c939..0ae311c 100644 --- a/docker-compose.yaml +++ b/docker-compose.example.yaml @@ -10,7 +10,7 @@ services: db: image: postgres:latest environment: - POSTGRES_USER: ${PostgresUser} + POSTGRES_USER: ${PostgresUser}] POSTGRES_PASSWORD: ${PostgresPassword} POSTGRES_DB: ${PostgresDatabaseName} ports: @@ -25,12 +25,6 @@ services: timeout: "30s" retries: 5 - adminer: - image: adminer - restart: always - ports: - - "8080:8080" - api: image: newsbot.collector:latest environment: