-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.17 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
version: '3.8'
services:
postgres:
image: postgres:15-alpine
container_name: agentauth-db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: agentauth
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
server:
build:
context: .
dockerfile: docker/Dockerfile.server
container_name: agentauth-server
ports:
- "8080:8080"
environment:
PORT: 8080
ENV: production
DATABASE_URL: postgres://postgres:postgres@postgres:5432/agentauth?sslmode=disable
JWT_SIGNING_ALGORITHM: RS256
JWT_KEY_ID: key-1
JWT_ACCESS_TOKEN_EXPIRY: 3600
ALLOWED_ORIGINS: "*"
REQUIRE_HTTPS: "false"
ADMIN_EMAIL: [email protected]
ADMIN_PASSWORD: changeme
WEBHOOK_WORKER_COUNT: 3
depends_on:
postgres:
condition: service_healthy
web:
build:
context: .
dockerfile: docker/Dockerfile.web
container_name: agentauth-web
ports:
- "80:80"
depends_on:
- server
volumes:
postgres_data: