-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
90 lines (86 loc) · 2.14 KB
/
docker-compose-dev.yml
File metadata and controls
90 lines (86 loc) · 2.14 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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
services:
postgres:
container_name: postgres
image: 'postgis/postgis:15-3.3'
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- 'postgres_dev_data:/var/lib/postgresql/data:rw'
expose:
- '5432'
read_only: true
security_opt:
- no-new-privileges:true
tmpfs:
- /var/run/postgresql
healthcheck:
test: "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"
interval: 3s
retries: 10
redis:
container_name: redis
image: 'redis:latest'
expose:
- '6379'
command: redis-server --requirepass '${REDIS_PASSWORD}'
read_only: true
security_opt:
- no-new-privileges:true
volumes:
- 'redis_dev_data:/var/lib/redis/data:rw'
healthcheck:
test: [ "CMD", "redis-cli", "--no-auth-warning", "-a", "${REDIS_PASSWORD}", "ping" ]
interval: 3s
retries: 10
bayanat:
container_name: bayanat
build:
context: .
dockerfile: ./flask/Dockerfile
args:
- ROLE=flask
- ENV_FILE=${ENV_FILE:-.env.dev}
volumes:
- 'bayanat_dev_backups:/app/backups/:rw'
- 'bayanat_dev_media:/app/enferno/media/:rw'
- 'bayanat_dev_imports:/app/enferno/imports/:rw'
- 'bayanat_dev_logs:/app/logs/:rw'
- '${PWD}/config.json:/app/config.json:rw'
- '${PWD}/${ENV_FILE:-.env.dev}:/app/.env:ro'
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
ports:
- '127.0.0.1:5000:5000'
restart: always
celery:
container_name: celery
build:
context: .
dockerfile: ./flask/Dockerfile
args:
- ROLE=celery
- ENV_FILE=${ENV_FILE:-.env.dev}
volumes_from:
- bayanat
read_only: true
tmpfs:
- /tmp
security_opt:
- no-new-privileges:true
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
volumes:
redis_dev_data:
postgres_dev_data:
bayanat_dev_media:
bayanat_dev_imports:
bayanat_dev_backups:
bayanat_dev_logs: