version: '3.3' networks: jedoist: external: true services: bot: # build: ./ image: localhost:5001/jedoist:${APP_VERSION} environment: - BOT_TOKEN=${BOT_TOKEN} - VK_CLIENT_ID=${VK_CLIENT_ID} - VK_SECRET_KEY=${VK_SECRET_KEY} - BOT_OWNER_ID=258985362 - DB_HOST=jedoist-db - DB_NAME=jedoist-db - DB_USER=${DB_USER} - DB_PASS=${DB_PASS} - VOICES_PATH=${VOICES_PATH} - CONFIG_FILE=/mnt/config.json restart: always depends_on: - bot-db networks: - jedoist volumes: - ${CONFIG_FILE}:/mnt/config.json bot-db: image: postgres:14 container_name: jedoist-db restart: always environment: POSTGRES_USER: ${DB_USER} POSTGRES_PASSWORD: ${DB_PASS} POSTGRES_DB: jedoist-db networks: - jedoist volumes: - ${DB_VOLUME}:/var/lib/postgresql/data ports: - 5432:5432