-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathexternal-mainland.yml
71 lines (65 loc) · 1.79 KB
/
external-mainland.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3'
volumes:
external_postgres_data:
external_postgres_data_backups:
services:
mailhog:
image: mailhog/mailhog:v1.0.0
container_name: django_blog_project_external_mailhog
ports:
- "1025:1025"
- "8025:8025"
redis:
image: redis:5.0
container_name: django_blog_project_external_redis
ports:
- "6379:6379"
celeryworker:
build:
context: .
dockerfile: compose/external/django/DockerfileMainland
image: django_blog_project_external_celeryworker
container_name: django_blog_project_external_celeryworker
working_dir: /app
volumes:
- .:/app
environment:
- DJANGO_SETTINGS_MODULE=config.settings.local
- READ_ENV_FILE=yes
- USE_DOCKER=yes
- CELERY_BROKER_URL=redis://redis:6379/0
- DJANGO_EMAIL_HOST=mailhog
depends_on:
- redis
command: /start-celeryworker.sh
celerybeat:
build:
context: .
dockerfile: compose/external/django/DockerfileMainland
image: django_blog_project_external_celerybeat
container_name: django_blog_project_external_celerybeat
working_dir: /app
volumes:
- .:/app
environment:
- DJANGO_SETTINGS_MODULE=config.settings.local
- READ_ENV_FILE=yes
- USE_DOCKER=yes
- CELERY_BROKER_URL=redis://redis:6379/0
- DJANGO_EMAIL_HOST=mailhog
depends_on:
- redis
command: /start-celerybeat.sh
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: django_blog_project_production_postgres
container_name: django_blog_project_external_postgres
volumes:
- external_postgres_data:/var/lib/postgresql/data
- external_postgres_data_backups:/backups
env_file:
- ./.envs/.local/.postgres
ports:
- "5432:5432"