Add restart policy for RabbitMQ and Postgres services in Docker Compose
Fix #11
This commit is contained in:
parent
951128147c
commit
c639307cfb
1 changed files with 2 additions and 0 deletions
|
@ -32,10 +32,12 @@ services:
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
image: rabbitmq
|
image: rabbitmq
|
||||||
container_name: musik_rabbitmq
|
container_name: musik_rabbitmq
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:17
|
image: postgres:17
|
||||||
container_name: musik_postgres
|
container_name: musik_postgres
|
||||||
|
restart: unless-stopped
|
||||||
env_file: stack.env
|
env_file: stack.env
|
||||||
volumes:
|
volumes:
|
||||||
- /docker/musik/postgres:/var/lib/postgresql/data
|
- /docker/musik/postgres:/var/lib/postgresql/data
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue