-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
79 lines (77 loc) · 2.1 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
79 lines (77 loc) · 2.1 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
services:
aether-drive:
build:
context: .
dockerfile: Dockerfile.dev
image: skygenesisenterprise/aether-drive:latest
container_name: aether-drive
restart: unless-stopped
ports:
- "3000:3000"
- "8080:8080"
environment:
NODE_ENV: development
ENVIRONMENT: local
DB_PASSWORD: ${DB_PASSWORD:-password}
DATABASE_URL: postgresql://aether:${DB_PASSWORD:-password}@db:5432/etheria_account
JWT_SECRET: ${JWT_SECRET:-dev-secret-change-in-production}
SERVER_PORT: 8080
NEXT_PUBLIC_API_URL: http://localhost:8080
NEXT_PUBLIC_ENVIRONMENT: local
CORS_ALLOWED_ORIGINS: http://localhost:3000,http://127.0.0.1:3000
SKIP_PRISMA_SETUP: "true"
volumes:
- ./server:/app/server
- ./.air.toml:/app/.air.toml
- ./app:/app/app
- ./messages:/app/messages
- ./scripts:/app/scripts
- /app/app/node_modules
- ./logs:/app/logs
- /var/run/docker.sock:/var/run/docker.sock
working_dir: /app
entrypoint: ["/app/scripts/wait-for-db.sh"]
depends_on:
db:
condition: service_healthy
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: "10m"
max-file: "3"
mem_limit: 4g
mem_reservation: 1g
db:
image: postgres:16-alpine
container_name: aetherbank-db
restart: unless-stopped
environment:
POSTGRES_USER: aether
POSTGRES_PASSWORD: ${DB_PASSWORD:-password}
POSTGRES_DB: etheria_account
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -h localhost -p 5432 -U aether -d etheria_account"]
interval: 5s
timeout: 3s
retries: 10
start_period: 10s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
deploy:
resources:
limits:
cpus: "0.5"
memory: 256M
volumes:
postgres_data: