-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
62 lines (59 loc) · 1.56 KB
/
docker-compose.dev.yml
File metadata and controls
62 lines (59 loc) · 1.56 KB
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
62
services:
db:
image: postgres:15-alpine
restart: always
environment:
POSTGRES_USER: ${DB_USER:-postgres}
POSTGRES_PASSWORD: ${DB_PASSWORD:-postgres}
POSTGRES_DB: ${DB_NAME:-qvote}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5440:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${DB_USER:-postgres}" ]
interval: 5s
timeout: 5s
retries: 5
test-db:
image: postgres:15-alpine
restart: always
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: test
ports:
- "5433:5432"
tmpfs:
- /var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U test" ]
interval: 1s
timeout: 2s
retries: 5
app:
build: .
restart: always
depends_on:
db:
condition: service_healthy
ports:
- "${PORT:-8443}:8443"
- "9229:9229"
environment:
- SLACK_CLIENT_ID=${SLACK_CLIENT_ID}
- SLACK_CLIENT_SECRET=${SLACK_CLIENT_SECRET}
- SLACK_REDIRECT_URI=${SLACK_REDIRECT_URI}
- PORT=${PORT:-8080}
- USE_HTTPS=${USE_HTTPS:-false}
- DATABASE_URL=${DATABASE_URL:-postgresql://postgres:postgres@db:5432/qvote}
# command: >
# sh -c "deno task prisma:generate && deno run --inspect=0.0.0.0:9229 --allow-net --allow-env --allow-read --allow-run --allow-ffi --watch main.ts"
volumes:
- .:/app
- deno-cache:/home/deno/.cache/deno
- .env:/app/.env
- ./certs:/app/certs
volumes:
postgres_data:
deno-cache: