Repository navigation
Expand file tree
/
Copy pathdocker-compose.deploy.yml
More file actions
64 lines (60 loc) · 1.58 KB
/
Copy pathdocker-compose.deploy.yml
File metadata and controls
64 lines (60 loc) · 1.58 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
version: "3.8"
services:
alarik:
build:
context: ./alarik
dockerfile: Dockerfile
container_name: alarik-prod
restart: unless-stopped
ports:
- "8080:8080"
environment:
- LOG_LEVEL=${LOG_LEVEL:-info}
- API_BASE_URL=${API_BASE_URL:-http://localhost:8080}
- CONSOLE_BASE_URL=${CONSOLE_BASE_URL:-http://localhost:3000}
- ADMIN_USERNAME=${ADMIN_USERNAME:-alarik}
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-alarik}
- DEFAULT_ACCESS_KEY=${DEFAULT_ACCESS_KEY}
- DEFAULT_SECRET_KEY=${DEFAULT_SECRET_KEY}
- ALLOW_ACCOUNT_CREATION=${ALLOW_ACCOUNT_CREATION}
volumes:
# Only mount persistent storage, no source code
- alarik-storage:/app/Storage
networks:
- alarik-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
security_opt:
- no-new-privileges:true
read_only: false
tmpfs:
- /tmp
console:
build:
context: ./console
dockerfile: Dockerfile
container_name: console-prod
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- API_BASE_URL=${API_BASE_URL:-http://localhost:8080}
- CONSOLE_BASE_URL=${CONSOLE_BASE_URL:-http://localhost:3000}
- ALLOW_ACCOUNT_CREATION=${ALLOW_ACCOUNT_CREATION}
networks:
- alarik-network
read_only: true
tmpfs:
- /tmp
- /app/.nuxt
networks:
alarik-network:
driver: bridge
volumes:
alarik-storage:
driver: local