mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 14:32:25 +01:00
37 lines
665 B
YAML
37 lines
665 B
YAML
version: '3'
|
|
services:
|
|
db:
|
|
image: "postgres:9.6.5"
|
|
restart: always
|
|
volumes:
|
|
- "./data/db:/var/lib/postgresql/data"
|
|
env_file:
|
|
- config.env
|
|
|
|
redis:
|
|
image: 'redis:3.0-alpine'
|
|
command: redis-server
|
|
volumes:
|
|
- './data/redis:/data'
|
|
|
|
app:
|
|
build: .
|
|
command: ./runprodguni.sh
|
|
ports:
|
|
- 5123:5123
|
|
volumes:
|
|
- "./data/uploads:/home/cdb/app/public/uploads"
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
|
|
worker:
|
|
build: .
|
|
command: celery -A app.tasks.celery worker
|
|
env_file:
|
|
- config.env
|
|
volumes:
|
|
- "./data/uploads:/home/cdb/app/public/uploads"
|
|
depends_on:
|
|
- redis
|