mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-11-02 22:19:49 +01:00
feat(build): add networking and restart always for bot
This commit is contained in:
parent
a5792ce8a2
commit
83724288d3
@ -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:
|
||||
Loading…
x
Reference in New Issue
Block a user