-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
84 lines (75 loc) · 2.07 KB
/
docker-compose.yaml
File metadata and controls
84 lines (75 loc) · 2.07 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
services:
database:
image: postgres:16-alpine
environment:
POSTGRES_DB: arenauth
POSTGRES_USER: arenauth
POSTGRES_PASSWORD: ${DB_PASSWORD:-arenauth_secure_password}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U arenauth"]
interval: 10s
timeout: 5s
retries: 5
networks:
- arenauth-network
backend:
image: ghcr.io/joshicodes/arenauth/backend:arm64
depends_on:
database:
condition: service_healthy
environment:
QUARKUS_HTTP_HOST: 0.0.0.0
DB_USER: arenauth
DB_PASSWORD: ${DB_PASSWORD:-arenauth_secure_password}
DB_HOST: database
DB_NAME: arenauth
USE_HTTPS: ${USE_HTTPS:-false}
FRONTEND_URL: ${FRONTEND_URL}
CORS_ORIGINS: ${FRONTEND_URL},http://frontend:3000
COOKIE_DOMAIN: ${COOKIE_DOMAIN}
JWT_ISSUER: ${BACKEND_URL}
DISABLE_SIGNUP: ${DISABLE_SIGNUP:-false}
ports:
- "8080:8080"
networks:
- arenauth-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/q/health/ready"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
volumes:
- arenauth_uploads:/opt/aren/uploads
frontend:
image: ghcr.io/joshicodes/arenauth/frontend:arm64
depends_on:
backend:
condition: service_healthy
ports:
- "3000:3000"
networks:
- arenauth-network
environment:
PUBLIC_BACKEND_URL: ${BACKEND_URL}
INTERNAL_BACKEND_URL: ${INTERNAL_BACKEND_URL}
PUBLIC_USE_TURNSTILE_CAPTCHA: ${PUBLIC_USE_TURNSTILE_CAPTCHA:-false}
PUBLIC_TURNSTILE_SITE_KEY: ${PUBLIC_TURNSTILE_SITE_KEY}
SECRET_TURNSTILE_KEY: ${SECRET_TURNSTILE_KEY}
PUBLIC_DISABLE_SIGNUP: ${DISABLE_SIGNUP:-false}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
volumes:
postgres_data:
arenauth_uploads:
networks:
arenauth-network:
driver: bridge