-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.cloud.yml
More file actions
50 lines (49 loc) · 1.24 KB
/
Copy pathdocker-compose.cloud.yml
File metadata and controls
50 lines (49 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
47
48
49
50
services:
aetherbank:
build:
context: .
dockerfile: Dockerfile.cloud
image: aetherbank:latest
container_name: aetherbank
restart: unless-stopped
ports:
- "3000:3000"
expose:
- "8080"
environment:
NODE_ENV: production
ENVIRONMENT: production
DB_PASSWORD: ${DB_PASSWORD}
DATABASE_URL: postgresql://aether:${DB_PASSWORD}@localhost:5432/etheria_account
JWT_SECRET: ${JWT_SECRET}
SERVER_PORT: 8080
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL}
NEXT_PUBLIC_ENVIRONMENT: production
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS}
volumes:
- ./scripts:/app/scripts
- ./logs:/app/logs
- postgres_data:/var/lib/postgresql/data
working_dir: /app
command: ["/entrypoint-cloud.sh"]
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"
deploy:
resources:
limits:
cpus: "1.5"
memory: 1.5G
reservations:
cpus: "0.5"
memory: 512M
volumes:
postgres_data: