-
-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathdocker-compose.migrate.yml
More file actions
34 lines (34 loc) · 1018 Bytes
/
docker-compose.migrate.yml
File metadata and controls
34 lines (34 loc) · 1018 Bytes
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
services:
mongo:
image: mongo:4.4.29
restart: unless-stopped
healthcheck:
test: 'test $$(echo "rs.initiate({ _id: ''rs'', members: [ { _id: 0, host: ''mongo:27017'' } ] }).ok || rs.status().ok" | mongo --quiet) -eq 1'
interval: 30s
start_period: 10s
command: ["--replSet", "rs", "--bind_ip_all"]
networks:
- shellhub
postgres:
image: postgres:18.0
command: postgres -c io_method=io_uring
security_opt:
- seccomp=unconfined
healthcheck:
start_period: 90s
interval: 5s
timeout: 5s
retries: 5
test: ["CMD-SHELL", "pg_isready -U ${SHELLHUB_POSTGRES_USERNAME} -d ${SHELLHUB_POSTGRES_DATABASE}"]
environment:
- POSTGRES_USER=${SHELLHUB_POSTGRES_USERNAME}
- POSTGRES_PASSWORD=${SHELLHUB_POSTGRES_PASSWORD}
- POSTGRES_DB=${SHELLHUB_POSTGRES_DATABASE}
networks:
- shellhub
api:
depends_on:
mongo:
condition: service_healthy
postgres:
condition: service_healthy