-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (58 loc) · 1.43 KB
/
docker-compose.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
services:
db:
build:
context: .
dockerfile: Dockerfile.db
container_name: db
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5433:5432"
healthcheck:
test: ["CMD", "pg_isready", "-U", "${DB_USER}"]
interval: 1s
timeout: 2s
retries: 10
# This provides an example of using Oso's reconcile CLI feature in Docker
# Compose. Find more information at
# https://www.osohq.com/docs/authorization-data/centralized/manage-centralized-authz-data/sync-data#sync-facts-in-production
# The reconcile feature is not meant to be used with Oso developer accounts,
# so is commented out.
# oso_reconcile:
# build:
# context: .
# dockerfile: Dockerfile.oso_reconcile
# platform: linux/arm64
# container_name: oso_reconcile
# environment:
# - OSO_AUTH=${OSO_CLOUD_API_KEY}
# - OSO_URL=${OSO_URL}
# depends_on:
# db:
# condition: service_healthy
app:
container_name: app
build:
context: .
dockerfile: Dockerfile.app
target: builder
restart: always
command: yarn dev
env_file:
- .env
volumes:
- .:/app
- /app/node_modules
- /app/.next
ports:
- 3000:3000
depends_on:
db:
condition: service_healthy
# - oso_reconcile
volumes:
pgdata:
driver: local