-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.yaml
81 lines (77 loc) · 2.31 KB
/
docker-compose.yaml
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
version: '3'
services:
postgres:
restart: unless-stopped
container_name: 'devilry-django-dev-postgres'
image: 'postgres:14'
ports:
# Set on purpose to match django-dbdev setup in developsettings_common.py
- '23419:5432'
volumes:
- 'devilry-django-dev-pgdata-${DEVENV:-0}:/data/postgres'
environment:
# Set on purpose to match django-dbdev setup in developsettings_common.py
POSTGRES_DB: dbdev
POSTGRES_USER: dbdev
POSTGRES_PASSWORD: dbdev
PGDATA: /data/postgres
command: [
"postgres",
"-c", "shared_buffers=500MB",
"-c", "temp_buffers=8MB",
"-c", "work_mem=4MB",
"-c", "maintenance_work_mem=2GB",
"-c", "fsync=off",
"-c", "min_wal_size=2GB",
"-c", "max_wal_size=6GB",
"-c", "checkpoint_timeout=30min",
"-c", "archive_mode=off",
"-c", "autovacuum=off",
"-c", "synchronous_commit=off",
"-c", "full_page_writes=off",
"-c", "wal_buffers=16MB"
]
minio:
image: minio/minio
ports:
- 9000:9000
- 9001:9001
volumes:
- ./minio_devdata:/data
environment:
- MINIO_ROOT_USER=testuser
- MINIO_ROOT_PASSWORD=testpassword
command: server /data --console-address :9001
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add myminio http://minio:9000 testuser testpassword;
/usr/bin/mc rm -r --force myminio/devilrytempstorage;
/usr/bin/mc mb myminio/devilrytempstorage;
/usr/bin/mc policy download myminio/devilrytempstorage;
/usr/bin/mc rm -r --force myminio/devilrydeliverystorage;
/usr/bin/mc mb myminio/devilrydeliverystorage;
/usr/bin/mc policy download myminio/devilrydeliverystorage;
exit 0;
"
redis:
restart: unless-stopped
container_name: 'devilry-django-dev-redis'
image: 'redis:7'
ports:
- '36314:6379'
volumes:
- 'devilry-django-dev-redisdata-${DEVENV:-0}:/data'
volumes:
devilry-django-dev-pgdata-0: {}
devilry-django-dev-pgdata-1: {}
devilry-django-dev-pgdata-2: {}
devilry-django-dev-pgdata-master: {}
devilry-django-dev-redisdata-0: {}
devilry-django-dev-redisdata-1: {}
devilry-django-dev-redisdata-2: {}
devilry-django-dev-redisdata-master: {}
minio_data: {}