copied the code from the working repo
This commit is contained in:
62
mtucijobsbot/docker-compose.yml
Normal file
62
mtucijobsbot/docker-compose.yml
Normal file
@@ -0,0 +1,62 @@
|
||||
version: '3.9'
|
||||
|
||||
x-common-logging: &common-logging
|
||||
logging:
|
||||
# limit logs retained on host to 25MB
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
x-common-network: &common-network
|
||||
networks:
|
||||
- mtuci-jobs
|
||||
|
||||
services:
|
||||
bot-mtuci-jobs:
|
||||
image: image-mtuci-jobs
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: bot-mtuci-jobs
|
||||
restart: always
|
||||
depends_on:
|
||||
postgres-mtuci-jobs:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- '127.0.0.1:3005:3005'
|
||||
- '127.0.0.1:3006:3006'
|
||||
environment:
|
||||
DATABASE_URL: 'postgres://postgres:password@postgres-mtuci-jobs:5432/mtuci-jobs'
|
||||
DB_NAME: mtucijobs
|
||||
DB_USER: postgres
|
||||
DB_PASSWORD: password
|
||||
DB_HOST: postgres-mtuci-jobs
|
||||
BOT_TOKEN: '7306496213:AAGuvha0ytpF8keCZpes8BdP1AnfP7yEiSE'
|
||||
HOOKPORT: 3005
|
||||
PORT: 3006
|
||||
DOMAIN: ''
|
||||
WEB_APP: ''
|
||||
<<: [*common-network, *common-logging]
|
||||
|
||||
postgres-mtuci-jobs:
|
||||
image: postgres:16.1-alpine3.19
|
||||
container_name: bot-postgres-mtuci-jobs
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: password
|
||||
POSTGRES_DB: mtucijobs
|
||||
PGDATA: /data/postgres
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
healthcheck:
|
||||
test: pg_isready -U postgres
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
volumes:
|
||||
- /data/mtuci-jobs/data/postgres:/data/postgres
|
||||
<<: [*common-network, *common-logging]
|
||||
|
||||
networks:
|
||||
mtuci-jobs:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user