-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
52 lines (50 loc) · 1.26 KB
/
docker-compose.yml
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
version: '3.1'
services:
aiim-frontend:
container_name: aiim-frontend_container
restart: unless-stopped
build: ./frontend
ports:
- 3000:3000
depends_on:
- aiim-api
environment:
NUXT_PUBLIC_API_BASE_URL: ${NUXT_PUBLIC_API_BASE_URL}
aiim-api:
container_name: aiim-api_container
restart: unless-stopped
build:
context: .
dockerfile: ./api/Dockerfile
ports:
- 3005:3005
depends_on:
- aiim-db
environment:
DATABASE_URL: ${DATABASE_URL}
JWT_SECRET: ${JWT_SECRET}
JWT_EXPIRE_TIME: ${JWT_EXPIRE_TIME}
SIGN_PASS: ${SIGN_PASS}
aiim-db:
image: 'bitnami/mongodb:4.4.3'
restart: unless-stopped
environment:
- MONGODB_REPLICA_SET_MODE=primary
- MONGODB_PRIMARY_HOST=localhost
- MONGODB_ADVERTISED_HOSTNAME=localhost
- MONGODB_REPLICA_SET_KEY=replicakeyyy
- MONGODB_USERNAME=${MONGODB_USERNAME}
- MONGODB_PASSWORD=${MONGODB_PASSWORD}
- MONGODB_ROOT_PASSWORD=${MONGODB_PASSWORD}
- MONGODB_DATABASE=${MONGODB_DATABASE}
volumes:
- 'aiim-db_data:/bitnami/mongodb'
ports:
- 27017:27017
aiim-redis:
image: redis:7.0.5
restart: unless-stopped
ports:
- 6379:6379
volumes:
aiim-db_data: