-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
47 lines (44 loc) · 1.46 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
services:
postgres:
image: postgres:17
restart: unless-stopped
environment:
POSTGRES_USER: ${REGIOJET_DB_USER:-postgres}
POSTGRES_PASSWORD: ${REGIOJET_DB_PASSWORD:-postgres}
POSTGRES_DB: ${REGIOJET_DB_NAME:-train_me_maybe_db}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -U postgres -d postgres'"]
interval: 5s
timeout: 5s
retries: 5
adminer:
image: adminer
restart: always
ports:
- "8081:8080"
multi-user-app:
build:
context: .
dockerfile: Dockerfile
depends_on:
postgres:
condition: service_healthy
environment:
REGIOJET_DB_HOST: ${REGIOJET_DB_HOST:-postgres}
REGIOJET_DB_PORT: ${REGIOJET_DB_PORT:-5432}
REGIOJET_DB_USER: ${REGIOJET_DB_USER:-postgres}
REGIOJET_DB_PASSWORD: ${REGIOJET_DB_PASSWORD:-postgres}
REGIOJET_DB_NAME: ${REGIOJET_DB_NAME:-train_me_maybe_db}
REGIOJET_SMTP_USERNAME: ${REGIOJET_SMTP_USERNAME:-username@gmail.com}
REGIOJET_SMTP_PASSWORD: ${REGIOJET_SMTP_PASSWORD:-app_password}
REGIOJET_JWT_SECRET_KEY: ${REGIOJET_JWT_SECRET_KEY:-secretkey}
REGIOJET_SERVER_PORT: ${REGIOJET_SERVER_PORT:-8080}
REGIOJET_ENCRYPTION_KEY: ${REGIOJET_ENCRYPTION_KEY:-AuqbkWJQnomnUKZISvwybyIWBeLKIKwY}
ports:
- "${REGIOJET_SERVER_PORT:-8080}:${REGIOJET_SERVER_PORT:-8080}"
volumes:
postgres_data: