-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
45 lines (45 loc) · 1.12 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
version: "3.8"
services:
api:
environment:
- THORN_DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres?sslmode=disable
- THORN_API_HOST=0.0.0.0
- THORN_API_PORT=3001
- THORN_ADMIN_USERNAME=admin
- THORN_ADMIN_PASSWORD=admin
- THORN_ENCRYPTION_KEY=#.9U#JW#XbB12345
- THORN_ENCRYPTION_SECRET=abc&1*~#^2^#s0^=)^^7%b34
- THORN_SIGNING_KEY=secret
- THORN_DEV_MODE=true
- THORN_LOG_LEVEL=debug
- THORN_LOG_SINK=stdout
- THORN_LOG_FORMAT=text
build:
context: .
dockerfile: Dockerfile
target: base
entrypoint: ["air", ".", "-c", "./.air.toml"]
ports:
- 3001:3001
- 6060:6060
depends_on:
postgres:
condition: service_healthy
volumes:
- "./:/app"
postgres:
image: postgres:16.1-alpine
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 1s
timeout: 1s
retries: 120
volumes:
data:
driver: local