-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.local.app-base.yml
51 lines (50 loc) · 1.89 KB
/
docker-compose.local.app-base.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
services:
db-migration:
container_name: ${PROJECT_NAME:?err}--db-migration
image: ${PROJECT_NAME:?err}--app:latest-migrate
build:
dockerfile: ./docker/app/Dockerfile
target: migrate
privileged: true
pid: host
network_mode: host
environment:
- DATABASE_URL=${DATABASE_URL:?err}
depends_on:
postgres:
condition: service_healthy
app:
container_name: ${PROJECT_NAME:?err}--app
image: ${PROJECT_NAME:?err}--app:latest
build:
dockerfile: ./docker/app/Dockerfile
args:
- PUBLIC_POSTHOG_PROJECT_API_KEY=${PUBLIC_POSTHOG_PROJECT_API_KEY}
- PUBLIC_POSTHOG_API_HOST=${PUBLIC_POSTHOG_API_HOST}
- PUBLIC_SENTRY_ENVIRONMENT=${PUBLIC_SENTRY_ENVIRONMENT}
- PUBLIC_SENTRY_DSN=${PUBLIC_SENTRY_DSN}
- PUBLIC_SENTRY_ORGANIZATION=${PUBLIC_SENTRY_ORGANIZATION}
- PUBLIC_SENTRY_PROJECT_ID=${PUBLIC_SENTRY_PROJECT_ID}
- VITE_SENTRY_ORG=${VITE_SENTRY_ORG}
- VITE_SENTRY_PROJECT=${VITE_SENTRY_PROJECT}
- VITE_SENTRY_AUTH_TOKEN=${VITE_SENTRY_AUTH_TOKEN}
- ROARR_LOG=${ROARR_LOG}
- ROARR_MIN_LOG_LEVEL=${ROARR_MIN_LOG_LEVEL}
- ROARR_SHOW_DEBUG_CONTEXT=${ROARR_SHOW_DEBUG_CONTEXT}
- ROARR_ACCESS_LOG=${ROARR_ACCESS_LOG}
privileged: true
pid: host
network_mode: host
# ports:
# - host_ip: 0.0.0.0
# published: 3000 # host
# target: 3000 # container
# protocol: tcp
# mode: host
environment:
- PORT=3000
healthcheck:
interval: 10s
depends_on:
db-migration:
condition: service_completed_successfully