mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 03:37:28 +01:00
Use restart: unless-stopped
instead of restart: always
This commit is contained in:
parent
76414cb5ba
commit
92a9a7268c
@ -2,7 +2,7 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: "postgres:14.1"
|
image: "postgres:14.1"
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- "./data/db:/var/lib/postgresql/data"
|
- "./data/db:/var/lib/postgresql/data"
|
||||||
env_file:
|
env_file:
|
||||||
@ -10,19 +10,19 @@ services:
|
|||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: 'redis:6.2-alpine'
|
image: 'redis:6.2-alpine'
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
command: redis-server
|
command: redis-server
|
||||||
volumes:
|
volumes:
|
||||||
- './data/redis:/data'
|
- './data/redis:/data'
|
||||||
|
|
||||||
app:
|
app:
|
||||||
build: .
|
build: .
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
command: ./utils/entrypoint.sh
|
command: ./utils/entrypoint.sh
|
||||||
env_file:
|
env_file:
|
||||||
- config.env
|
- config.env
|
||||||
ports:
|
ports:
|
||||||
- 5123:5123
|
- "5123:5123"
|
||||||
volumes:
|
volumes:
|
||||||
- "./data/uploads:/var/cdb/uploads"
|
- "./data/uploads:/var/cdb/uploads"
|
||||||
- "./data/logs:/var/cdb/logs"
|
- "./data/logs:/var/cdb/logs"
|
||||||
@ -35,7 +35,7 @@ services:
|
|||||||
|
|
||||||
worker:
|
worker:
|
||||||
build: .
|
build: .
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
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
|
||||||
@ -49,7 +49,7 @@ services:
|
|||||||
|
|
||||||
beat:
|
beat:
|
||||||
build: .
|
build: .
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
command: celery -A app.tasks.celery beat
|
command: celery -A app.tasks.celery beat
|
||||||
env_file:
|
env_file:
|
||||||
- config.env
|
- config.env
|
||||||
@ -60,10 +60,10 @@ services:
|
|||||||
|
|
||||||
exporter:
|
exporter:
|
||||||
image: ovalmoney/celery-exporter
|
image: ovalmoney/celery-exporter
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- config.env
|
- config.env
|
||||||
ports:
|
ports:
|
||||||
- 5125:9540
|
- "5125:9540"
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
|
Loading…
Reference in New Issue
Block a user