Repository navigation
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
59 lines (57 loc) · 1.54 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
59 lines (57 loc) · 1.54 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
networks:
blinko-network:
driver: host
services:
blinko-website:
image: blinkospace/blinko:latest
# container_name: blinko-website
environment:
NODE_ENV: production
# NEXTAUTH_URL: http://localhost:1111
# NEXT_PUBLIC_BASE_URL: http://localhost:1111
NEXTAUTH_SECRET: my_ultra_secure_nextauth_secret
DATABASE_URL: postgresql://postgres:mysecretpassword@192.168.31.69:5435/postgres
# depends_on:
# postgres:
# condition: service_healthy
# Make sure you have enough permissions.
# volumes:
# - ~/your-name/.blinko:/app/.blinko
restart: always
logging:
options:
max-size: "10m"
max-file: "3"
ports:
- 1111:1111
healthcheck:
test: ["CMD", "curl", "-f", "http://blinko-website:1111/"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
# networks:
# - blinko-network
# postgres:
# image: postgres:14
# container_name: blinko-postgres
# restart: always
# ports:
# - 5435:5432
# environment:
# POSTGRES_DB: postgres
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: mysecretpassword
# TZ: Asia/Shanghai
# # Persisting container data
# # Make sure you have enough permissions.
# # volumes:
# # - ~/your-name/.db:/var/lib/postgresql/data
# healthcheck:
# test:
# ["CMD", "pg_isready", "-U", "postgres", "-d", "postgres"]
# interval: 5s
# timeout: 10s
# retries: 5
# networks:
# - blinko-network