feat(build): add networking and restart always for bot

This commit is contained in:
smyalygames 2023-02-27 21:42:42 +00:00
parent a5792ce8a2
commit 83724288d3

View File

@ -8,6 +8,10 @@ services:
- .env
volumes:
- postgres:/var/lib/postgresql/data
networks:
- arabot
ports:
- "5432:5432"
redis:
image: redis:7
@ -17,20 +21,30 @@ services:
- .env
volumes:
- redis:/data
networks:
- arabot
ports:
- "6379:6379"
node:
arabot:
build:
context: .
dockerfile: Dockerfile
container_name: arabot
restart: always
depends_on:
- postgres
- redis
env_file:
- .env
networks:
- arabot
volumes:
postgres:
name: arabot-db
redis:
name: arabot-redis
networks:
arabot: