-
Notifications
You must be signed in to change notification settings - Fork 223
Expand file tree
/
Copy pathcompose.yml
More file actions
45 lines (41 loc) · 1.24 KB
/
compose.yml
File metadata and controls
45 lines (41 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: django-celeryresult
volumes:
postgres_data:
networks:
celery:
services:
postgres:
image: postgres:${POSTGRES_VERSION:-15}
container_name: djangoceleryresults-postgres
cpus: 0.25
mem_limit: 256m
mem_reservation: 128m
environment:
POSTGRES_USER: ${DB_POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${DB_POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${DB_POSTGRES_DATABASE:-postgres}
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
celery:
aliases:
- dcr-postgres
app:
build:
context: .
dockerfile: ./docker/Dockerfile
container_name: djangoceleryresults-app
cpus: 0.25
mem_limit: 512m
mem_reservation: 256m
environment:
DB_POSTGRES_USER: ${DB_POSTGRES_USER:-postgres}
DB_POSTGRES_PASSWORD: ${DB_POSTGRES_PASSWORD:-postgres}
DB_POSTGRES_DATABASE: ${DB_POSTGRES_DATABASE:-postgres}
DB_POSTGRES_HOST: dcr-postgres
depends_on:
- postgres
networks:
celery:
volumes:
- ./:/usr/src/celery/django-celery-results