diff --git a/docker-compose-postgres-localhost.yaml b/docker-compose-postgres-localhost.yaml new file mode 100644 index 0000000..bd9d0db --- /dev/null +++ b/docker-compose-postgres-localhost.yaml @@ -0,0 +1,16 @@ +version: '3.3' +services: + postgres: + container_name: postgres + image: postgres:15.0 + restart: always + ports: + - "5432:5432" + volumes: + - ./db:/var/lib/postgresql/data/ + environment: + - POSTGRES_USER=psqls + - POSTGRES_PASSWORD=Ax123456 + - DB_HOST=127.0.0.1 +volumes: + db: \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e8c47b4 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +version: '3.3' +services: + bot: + container_name: support-bot + build: . + restart: always + ports: + - "7772:7772" + env_file: + - ./.env + postgres: + container_name: support-bot-db + image: postgres:15.0 + restart: always + volumes: + - ./db:/var/lib/postgresql/data/ + env_file: + - ./.env \ No newline at end of file