1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- version: '3.7'
- services:
- noctbot:
- image: noctbot
- build:
- context: ./
- dockerfile: ./bot/Dockerfile
- restart: unless-stopped
- depends_on:
- - db
- - mongo
- - facedetect
- env_file:
- - .env
- - db.env
- volumes:
- - ./bot/stickers:/app/bot/stickers
- environment:
- NODE_ENV: production
- BOT_TOKEN: ${BOT_TOKEN}
- FORUM_PASS: ${FORUM_PASS}
- FORUM_API_KEY: ${FORUM_API_KEY}
- IGNORE_CHANGED_NEWS: ${IGNORE_CHANGED_NEWS}
- NPM_CONFIG_LOGLEVEL: info
- TYPEORM_USERNAME: ${DB_USERNAME}
- TYPEORM_PASSWORD: ${DB_PASSWORD}
- TYPEORM_DATABASE: ${DB_NAME}
- FACEDETECT_URL: facedetect
- facedetect:
- image: facedetect
- build:
- context: ./
- dockerfile: ./facedetect/Dockerfile
- restart: unless-stopped
- web:
- image: noctbot_web
- build:
- context: ./
- dockerfile: ./web/Dockerfile
- restart: unless-stopped
- depends_on:
- - db
- - mongo
- - noctbot
- env_file:
- - .env
- - db.env
- ports:
- - "9191:80"
- environment:
- NODE_ENV: production
- TYPEORM_USERNAME: ${DB_USERNAME}
- TYPEORM_PASSWORD: ${DB_PASSWORD}
- TYPEORM_DATABASE: ${DB_NAME}
- WEB_DATA_PATH: /web_data
- PORT: "80"
- SECURE: "TRUE"
- volumes:
- - web-data:/web_data
- db:
- image: postgres
- restart: unless-stopped
- env_file:
- - db.env
- environment:
- POSTGRES_PASSWORD: ${DB_PASSWORD}
- POSTGRES_USER: ${DB_USERNAME}
- volumes:
- - db-data:/var/lib/postgresql/data
- adminer:
- image: adminer
- restart: unless-stopped
- ports:
- - 3030:8080
- mongo:
- image: mongo
- restart: unless-stopped
- environment:
- MONGO_INITDB_ROOT_USERNAME: ${MONGO_DB_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD: ${MONGO_DB_PASSWORD}
- volumes:
- - mongo-data:/data/db
- volumes:
- db-data:
- mongo-data:
- web-data:
- caddy-data:
- caddy-config:
|