-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
56 lines (53 loc) · 1.2 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
services:
web:
build:
context: .
dockerfile: docker/web/Dockerfile
volumes:
- ./src:/app
ports:
- "8000:8000"
depends_on:
- db
- redis
environment:
- DJANGO_DB_HOST=db
- DJANGO_DB_NAME=icard
- DJANGO_DB_USER=myuser
- DJANGO_DB_PASSWORD=mypassword
- DJANGO_DB_PORT=5432
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_DB=0
db:
image: postgres:15
environment:
POSTGRES_DB: icard
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypassword
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes --maxmemory 512mb --maxmemory-policy allkeys-lru
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 3
adminer:
image: adminer
command: [ "php", "-d", "upload_max_filesize=10G", "-d", "post_max_size=10G", "-d", "memory_limit=4G", "-S", "[::]:8080", "-t", "/var/www/html" ]
ports:
- "8080:8080"
depends_on:
- db
volumes:
pgdata:
redis_data: