2022-08-23 09:01:47 +09:00
|
|
|
services:
|
2022-08-28 22:00:21 +09:00
|
|
|
quot:
|
|
|
|
image: kou029w/quot
|
|
|
|
build: "."
|
2022-08-23 12:54:45 +09:00
|
|
|
restart: unless-stopped
|
|
|
|
ports: ["8080:8080"]
|
2022-08-23 09:01:47 +09:00
|
|
|
environment:
|
2022-09-05 21:12:35 +09:00
|
|
|
# https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
|
|
|
|
QUOT_OPENID_ISSUER: ${QUOT_OPENID_ISSUER:?}
|
|
|
|
# https://www.rfc-editor.org/rfc/rfc6749#section-2.3.1
|
|
|
|
QUOT_OPENID_CLIENT_ID: ${QUOT_OPENID_CLIENT_ID:?}
|
|
|
|
QUOT_OPENID_CLIENT_SECRET: ${QUOT_OPENID_CLIENT_SECRET:?}
|
|
|
|
QUOT_JWK: ${QUOT_JWK:?} # https://mkjwk.org
|
2022-08-28 22:54:14 +09:00
|
|
|
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@/postgres?host=/var/run/postgresql
|
2022-08-23 09:01:47 +09:00
|
|
|
volumes:
|
|
|
|
- postgres_socket:/var/run/postgresql
|
2022-08-28 22:00:21 +09:00
|
|
|
depends_on: [db]
|
2022-09-05 21:12:35 +09:00
|
|
|
api:
|
|
|
|
profiles: [dev]
|
|
|
|
image: kou029w/quot
|
|
|
|
build: "."
|
|
|
|
restart: unless-stopped
|
|
|
|
ports: ["3000:3000"]
|
|
|
|
environment:
|
|
|
|
QUOT_JWK: ${QUOT_JWK:?} # https://mkjwk.org
|
|
|
|
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@/postgres?host=/var/run/postgresql
|
|
|
|
volumes:
|
|
|
|
- postgres_socket:/var/run/postgresql
|
|
|
|
depends_on:
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
2022-08-23 09:01:47 +09:00
|
|
|
dbmate:
|
2022-08-28 22:00:21 +09:00
|
|
|
profiles: [dev]
|
2022-08-28 15:37:58 +00:00
|
|
|
image: amacneil/dbmate:1.15@sha256:8fb25de3fce073e39eb3f9411af0410d0e26cc6d120544a7510b964e218abc27
|
2022-08-23 09:01:47 +09:00
|
|
|
command: --wait up
|
|
|
|
user: ${UID:-1000}:${GID:-1000}
|
|
|
|
environment:
|
|
|
|
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@/postgres?host=/var/run/postgresql
|
|
|
|
volumes:
|
2022-08-23 12:54:45 +09:00
|
|
|
- ./db:/db
|
2022-08-23 09:01:47 +09:00
|
|
|
- postgres_socket:/var/run/postgresql
|
|
|
|
depends_on: [db]
|
|
|
|
db:
|
2022-08-28 15:37:58 +00:00
|
|
|
image: postgres:14-alpine@sha256:322e9d80bbe0d19df45a2cfa262b50947683b4da283afdb6bee8e549aea87bf3
|
2022-08-23 09:01:47 +09:00
|
|
|
restart: unless-stopped
|
|
|
|
healthcheck:
|
|
|
|
test: pg_isready -U postgres
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
|
|
volumes:
|
|
|
|
- postgres_socket:/var/run/postgresql
|
|
|
|
- postgres_data_v14:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
|
|
postgres_socket:
|
|
|
|
postgres_data_v14:
|