-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (73 loc) · 1.97 KB
/
Copy pathdocker-compose.yml
File metadata and controls
78 lines (73 loc) · 1.97 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
version: '3.8'
services:
db:
image: postgres:16
container_name: auroville_db
environment:
POSTGRES_USER: auroville_user
POSTGRES_PASSWORD: ok
POSTGRES_DB: auroville_connect
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5433:5432"
networks:
- auroville_network
command: postgres -c shared_buffers=256MB -c work_mem=16MB -c maintenance_work_mem=128MB -c max_connections=50
app:
build:
context: .
dockerfile: Dockerfile
container_name: auroville_app
depends_on:
- db
environment:
- DATABASE_URL=postgresql://auroville_user:ok@db:5432/auroville_connect
- NODE_ENV=production
- NODE_OPTIONS="--max-old-space-size=512"
- SMTP_SERVER=smtp.ionos.com
- SMTP_PORT=587
- SMTP_USERNAME=notifications@aurovillenetwork.us
- SMTP_PASSWORD=lucky8magic7aurOville*Q
- SMTP_AUTH=plain
volumes:
- ./logs:/var/logs/app
networks:
- auroville_network
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:5000/health', (res) => { if (res.statusCode !== 200) process.exit(1) }).on('error', () => process.exit(1))"]
interval: 10s
timeout: 1s
retries: 5
start_period: 10s
nginx:
build:
context: .
dockerfile: deploy/nginx/Dockerfile
container_name: auroville_nginx
depends_on:
- app
ports:
- "80:80"
- "443:443"
volumes:
- ./deploy/nginx.conf/nginx.docker.conf:/etc/nginx/conf.d/default.conf
- ./dist:/usr/share/nginx/html
- /etc/letsencrypt:/etc/letsencrypt:ro
- /var/lib/letsencrypt:/var/lib/letsencrypt
networks:
- auroville_network
restart: unless-stopped
deploy:
resources:
limits:
cpus: '0.50'
memory: 512M
reservations:
memory: 256M
volumes:
postgres_data:
networks:
auroville_network:
driver: bridge