-
Notifications
You must be signed in to change notification settings - Fork 61
/
docker-compose.override.yml
64 lines (63 loc) · 1.68 KB
/
docker-compose.override.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
version: '3.8'
services:
postgres:
restart: unless-stopped
env_file:
- .env
volumes:
- ./data/postgres:/var/lib/postgresql/data
expose:
- ${POSTGRES_PORT}
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
healthcheck:
test:
[
'CMD-SHELL',
"sh -c 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'"
]
interval: 5s
timeout: 10s
retries: 3
minio:
restart: unless-stopped
command: server /data --console-address ":${MINIO_CONSOLE_PORT}"
env_file:
- .env
environment:
- MINIO_SITE_REGION=${STORAGE_REGION}
ports:
- ${MINIO_SERVER_PORT}:${MINIO_SERVER_PORT}
- ${MINIO_CONSOLE_PORT}:${MINIO_CONSOLE_PORT}
expose:
- ${MINIO_SERVER_PORT}:${MINIO_SERVER_PORT}
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:${MINIO_SERVER_PORT}/minio/health/live']
interval: 5s
timeout: 20s
retries: 3
volumes:
- ./data/minio:/data
createbuckets:
env_file:
- .env
entrypoint: >
bash -c "
mc alias set momentum_minio http://minio:${MINIO_SERVER_PORT} ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD} &&
mc mb momentum_minio/${STORAGE_BUCKET_NAME} --ignore-existing &&
mc anonymous set public momentum_minio/${STORAGE_BUCKET_NAME} &&
mc ilm rule add --prefix "upload_tmp/" --expire-days 1 momentum_minio/${STORAGE_BUCKET_NAME}
"
pgadmin:
container_name: pgadmin
env_file:
- .env
image: dpage/pgadmin4
restart: always
profiles:
- pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- "5050:80"