mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-08 22:17:34 +01:00
Add restart: always
to docker-compose.yml
This commit is contained in:
parent
2007f3a095
commit
c24013435c
@ -2,6 +2,7 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: "postgres:14.1"
|
image: "postgres:14.1"
|
||||||
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- "./data/db:/var/lib/postgresql/data"
|
- "./data/db:/var/lib/postgresql/data"
|
||||||
env_file:
|
env_file:
|
||||||
@ -9,12 +10,14 @@ services:
|
|||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: 'redis:6.2-alpine'
|
image: 'redis:6.2-alpine'
|
||||||
|
restart: always
|
||||||
command: redis-server
|
command: redis-server
|
||||||
volumes:
|
volumes:
|
||||||
- './data/redis:/data'
|
- './data/redis:/data'
|
||||||
|
|
||||||
app:
|
app:
|
||||||
build: .
|
build: .
|
||||||
|
restart: always
|
||||||
command: ./utils/entrypoint.sh
|
command: ./utils/entrypoint.sh
|
||||||
env_file:
|
env_file:
|
||||||
- config.env
|
- config.env
|
||||||
@ -32,6 +35,7 @@ services:
|
|||||||
|
|
||||||
worker:
|
worker:
|
||||||
build: .
|
build: .
|
||||||
|
restart: always
|
||||||
command: celery -A app.tasks.celery worker --concurrency 1
|
command: celery -A app.tasks.celery worker --concurrency 1
|
||||||
env_file:
|
env_file:
|
||||||
- config.env
|
- config.env
|
||||||
@ -45,6 +49,7 @@ services:
|
|||||||
|
|
||||||
beat:
|
beat:
|
||||||
build: .
|
build: .
|
||||||
|
restart: always
|
||||||
command: celery -A app.tasks.celery beat
|
command: celery -A app.tasks.celery beat
|
||||||
env_file:
|
env_file:
|
||||||
- config.env
|
- config.env
|
||||||
@ -55,6 +60,7 @@ services:
|
|||||||
|
|
||||||
exporter:
|
exporter:
|
||||||
image: ovalmoney/celery-exporter
|
image: ovalmoney/celery-exporter
|
||||||
|
restart: always
|
||||||
env_file:
|
env_file:
|
||||||
- config.env
|
- config.env
|
||||||
ports:
|
ports:
|
||||||
|
Loading…
Reference in New Issue
Block a user