-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
62 lines (58 loc) · 1.47 KB
/
docker-compose.prod.yml
File metadata and controls
62 lines (58 loc) · 1.47 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
services:
mongodb:
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
ports: []
command:
- "--auth"
- "--bind_ip_all"
- "--logpath=/var/log/mongodb/mongod.log"
app:
restart: always
environment:
NODE_ENV: production
MONGODB_URI: mongodb://${MONGO_USERNAME}:${MONGO_PASSWORD}@mongodb:27017/ai-research?authSource=admin
NEXTAUTH_URL: ${PRODUCTION_URL}
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
INNGEST_EVENT_KEY: ${INNGEST_EVENT_KEY}
INNGEST_SIGNING_KEY: ${INNGEST_SIGNING_KEY}
INNGEST_DEV: false
NEXT_PUBLIC_POSTHOG_KEY: ${NEXT_PUBLIC_POSTHOG_KEY:-}
NEXT_PUBLIC_POSTHOG_HOST: ${NEXT_PUBLIC_POSTHOG_HOST:-}
deploy:
resources:
limits:
cpus: '2'
memory: 2G
reservations:
cpus: '1'
memory: 1G
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes: []
nginx:
image: nginx:alpine
container_name: ai-research-nginx
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./ssl:/etc/nginx/ssl:ro
depends_on:
- app
networks:
- ai-research-network
profiles:
- with-nginx