-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.debug.yml
More file actions
50 lines (45 loc) · 1.54 KB
/
Copy pathdocker-compose.debug.yml
File metadata and controls
50 lines (45 loc) · 1.54 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
# Please refer https://aka.ms/HTTPSinContainer on how to setup an https developer certificate for your ASP.NET Core service.
version: '3.4'
services:
vega-nginx:
image: nginx:alpine
container_name: vega-nginx
volumes:
- ./optimal_cutting_backend/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./optimal_cutting_backend/nginx/certs/domain.crt:/etc/nginx/domain.crt
- ./optimal_cutting_backend/nginx/certs/domain.key:/etc/nginx/domain.key
ports:
- 80:80
- 443:443
restart: always
depends_on:
- vega-asp
vega-redis:
image: redis:alpine
container_name: vega-redis
restart: always
volumes:
- ./optimal_cutting_backend/redis/.redisdata:/data
command: >
sh -c '
mkdir -p /usr/local/etc/redis &&
echo "bind 0.0.0.0" > /usr/local/etc/redis/redis.conf &&
echo "appendonly yes" >> /usr/local/etc/redis/redis.conf &&
echo "appendfsync everysec" >> /usr/local/etc/redis/redis.conf &&
echo "user default on nopass ~* +@all" > /usr/local/etc/redis/users.acl &&
redis-server /usr/local/etc/redis/redis.conf --aclfile /usr/local/etc/redis/users.acl
'
vega-asp:
container_name: vega-asp
build:
context: .
dockerfile: optimal_cutting_backend/optimal_cutting_backend/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:5000;
volumes:
- ~/.aspnet/https:/https:ro
- ~/.vsdbg:/remote_debugger:rw
restart: always
depends_on:
- vega-redis