Совместный docker-compose всего проекта krekchat
This commit is contained in:
5
.env
Normal file
5
.env
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
DB_HOST: krekbots-postgres
|
||||||
|
DB_PORT: 5432
|
||||||
|
DB_USER: discord_economy_bot
|
||||||
|
DB_PASSWORD: economy_bot
|
||||||
|
DB_NAME: discord_economy_bot_db
|
||||||
4
.gitattributes
vendored
4
.gitattributes
vendored
@@ -1,2 +1,2 @@
|
|||||||
backups/discord_economy_bot_backup.sql -text
|
postgres/backups/discord_economy_bot_backup.sql -text
|
||||||
backups/discord_moderation_bot_backup.sql -text
|
postgres/backups/discord_moderation_bot_backup.sql -text
|
||||||
8
.gitmodules
vendored
Normal file
8
.gitmodules
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[submodule "economy-bot"]
|
||||||
|
path = economy-bot
|
||||||
|
url = https://github.com/HypoxiE/krekbot-economy.git
|
||||||
|
branch = tournament/ruinship
|
||||||
|
|
||||||
|
[submodule "moderation-bot"]
|
||||||
|
path = moderation-bot
|
||||||
|
url = https://github.com/HypoxiE/krekbot-moderation.git
|
||||||
@@ -1,18 +1,14 @@
|
|||||||
networks:
|
networks:
|
||||||
postgres-network:
|
krekbots-network:
|
||||||
name: postgres-network
|
name: krekbots-network
|
||||||
driver: bridge
|
driver: bridge
|
||||||
driver_opts:
|
|
||||||
com.docker.network.bridge.enable_icc: "true"
|
|
||||||
com.docker.network.bridge.enable_ip_masquerade: "true"
|
|
||||||
attachable: true
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:17
|
image: postgres:17
|
||||||
networks:
|
networks:
|
||||||
- postgres-network
|
- krekbots-network
|
||||||
container_name: shared-postgres
|
container_name: krekbots-postgres
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
@@ -20,7 +16,27 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
volumes:
|
volumes:
|
||||||
# - ./pgdata:/var/lib/postgresql/data
|
- ./postgres/pgdata:/var/lib/postgresql/data
|
||||||
- ./backups:/docker-entrypoint-backups:ro
|
- ./postgres/backups:/docker-entrypoint-backups:ro
|
||||||
- ./init:/docker-entrypoint-initdb.d:ro
|
- ./postgres/init:/docker-entrypoint-initdb.d:ro
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
|
||||||
|
krekbot-economy:
|
||||||
|
build: ./economy-bot
|
||||||
|
image: krekbot-economy
|
||||||
|
container_name: krekbot-economy
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- krekbots-network
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
krekbot-moderation:
|
||||||
|
build: ./moderation-bot
|
||||||
|
image: krekbot-moderation
|
||||||
|
container_name: krekbot-moderation
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- krekbots-network
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
1
economy-bot
Submodule
1
economy-bot
Submodule
Submodule economy-bot added at 39fa59e009
1
moderation-bot
Submodule
1
moderation-bot
Submodule
Submodule moderation-bot added at 1fb7f2e327
Reference in New Issue
Block a user