-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (54 loc) · 1.24 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (54 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
51
52
53
54
55
56
57
58
59
version: '3.8'
services:
postgres:
image: postgres:15-alpine
container_name: nukrop_db
environment:
POSTGRES_USER: enterprise_ai
POSTGRES_PASSWORD: securepassword123
POSTGRES_DB: ai_os_db
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./backend/schema.sql:/docker-entrypoint-initdb.d/1-schema.sql
restart: always
api:
build:
context: ./backend
dockerfile: Dockerfile
container_name: nukrop_api
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- PORT=3000
- DB_CONNECTION_STRING=postgresql://enterprise_ai:securepassword123@postgres:5432/ai_os_db
- JWT_SECRET=SUPER_SECURE_JWT_SECRET_KEY_12345
- JWT_REFRESH_SECRET=SUPER_SECURE_REFRESH_SECRET_KEY_98765
depends_on:
- postgres
restart: always
web:
build:
context: ./web
dockerfile: Dockerfile
container_name: nukrop_web
ports:
- "5173:80"
depends_on:
- api
restart: always
proxy:
image: nginx:alpine
container_name: nukrop_proxy
ports:
- "8080:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- api
- web
restart: always
volumes:
pgdata: