-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
111 lines (102 loc) · 1.92 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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
version: "4.1"
services:
# ASP.NET Service
api:
build:
context: ./api
ports:
- 5257:5257
- 7201:7201
expose:
- 5257
env_file:
- .env.api
volumes:
- ./api:/src
networks:
- prac-hris
depends_on:
- db
# NestJS Service
api_v2:
build:
context: ./api_v2
ports:
- 3001:3001
expose:
- 3001
env_file:
- .env.api_v2
networks:
- prac-hris
depends_on:
- api
- redis
# NextJS Service
client:
build:
context: ./client
ports:
- 3000:3000
env_file:
- .env.client
networks:
- prac-hris
depends_on:
- api
volumes:
- ./client:/usr/src/app
- /usr/src/app/node_modules
- /usr/src/app/.next
# MSSQL Service
db:
image: "mcr.microsoft.com/mssql/server:2022-latest"
user: root
ports:
- 1433:1433
restart: always
volumes:
- ./data:/var/opt/mssql/data
- ./log:/var/opt/mssql/log
- ./secrets:/var/opt/mssql/secrets
env_file:
- .env.db
networks:
- prac-hris
# Nginx service
webserver:
build:
context: ./nginx
ports:
- 80:80
- 443:443
volumes:
- ./certbot/www/:/var/www/certbot/:ro
- ./certbot/conf/:/etc/letsencrypt/:ro
networks:
- prac-hris
restart: always
# Certbot Srevice
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
command: certonly --webroot -w /var/www/certbot --force-renewal --email [email protected] -d sun-hris.org --agree-tos
networks:
- prac-hris
#Redis Cache Service
redis:
image: "redis:latest"
ports:
- 6379:6379
networks:
- prac-hris
volumes:
- redis-data:/data
networks:
prac-hris:
driver: bridge
volumes:
redis-data:
driver: local