1
0
Fork 0
mirror of https://github.com/kou029w/quot.git synced 2025-01-19 08:28:09 +00:00
quot/compose.yml

47 lines
1.2 KiB
YAML
Raw Normal View History

2022-08-23 09:01:47 +09:00
services:
2022-08-23 12:54:45 +09:00
app:
image: kou029w/quot-app
build: app
restart: unless-stopped
init: true
user: ${UID:-1000}:${GID:-1000}
ports: ["8080:8080"]
volumes:
- ./app:/app
2022-08-23 09:01:47 +09:00
api:
image: postgrest/postgrest:v10.0.0
restart: unless-stopped
ports: ["127.0.0.1:3000:3000"]
environment:
PGRST_DB_URI: postgresql://postgres:${POSTGRES_PASSWORD}@/postgres?host=/var/run/postgresql
PGRST_DB_SCHEMA: public
PGRST_DB_ANON_ROLE: postgres
volumes:
- postgres_socket:/var/run/postgresql
depends_on:
db:
condition: service_healthy
dbmate:
image: amacneil/dbmate:1.15
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:
image: postgres:14-alpine
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: