-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
46 lines (45 loc) · 1.24 KB
/
docker-compose.dev.yml
File metadata and controls
46 lines (45 loc) · 1.24 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
services:
aetheridentity:
build:
context: .
dockerfile: Dockerfile.dev
image: aetheridentity:latest
container_name: aetheridentity
restart: unless-stopped
ports:
- "3000:3000"
expose:
- "8080"
- "5432"
environment:
NODE_ENV: development
ENVIRONMENT: development
DB_HOST: localhost
DB_PORT: 5432
DB_USER: aether
DB_NAME: etheria_account
DB_PASSWORD: ${DB_PASSWORD:-password}
DATABASE_URL: postgresql://aether:${DB_PASSWORD:-password}@localhost:5432/etheria_account
JWT_SECRET: ${JWT_SECRET:-default-secret-change-in-production}
SERVER_PORT: 8080
NEXT_PUBLIC_API_URL: http://localhost:3000
NEXT_PUBLIC_ENVIRONMENT: development
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS:-*}
GIN_MODE: debug
USE_EMBEDDED_DB: "true"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:3000/health 2>/dev/null || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "5"
entrypoint: ["/entrypoint.sh"]
volumes:
postgres_data: