31 lines
No EOL
622 B
Bash
31 lines
No EOL
622 B
Bash
#!/bin/bash
|
|
|
|
docker version
|
|
docker compose version
|
|
|
|
cat <<ENDFILE > compose.yml
|
|
services:
|
|
postgres:
|
|
image: postgres:15.2-alpine3.17
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: 'acc'
|
|
POSTGRES_PASSWORD: 'totor'
|
|
POSTGRES_DB: 'accounts'
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
users:
|
|
image: users-release
|
|
volumes:
|
|
- ./docker/keys:/keys
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
ENDFILE
|
|
|
|
docker compose pull --quiet --ignore-pull-failures
|
|
docker images
|
|
docker compose up -d |