-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (63 loc) · 1.73 KB
/
Copy pathdocker-compose.yml
File metadata and controls
67 lines (63 loc) · 1.73 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
63
64
65
66
67
networks:
ProjectPetNetwork:
external: true
services:
projectpet.fileservice:
container_name: ProjectPet.fileservice
build:
args:
NUGET_USERNAME: ${NUGET_USERNAME}
NUGET_PASSWORD: ${NUGET_PASSWORD}
context: .
dockerfile: ProjectPet.FileService/Dockerfile
ports:
- "6060:6060"
- "6061:6061"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=6060
- ASPNETCORE_HTTPS_PORTS=6061
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro
depends_on:
- "projectpet.minio"
- "projectpet.fileservice.mongodb"
- "projectpet.fileservice.redis"
networks:
- ProjectPetNetwork
- default
restart: always
projectpet.minio:
image: minio/minio
container_name: ProjectPet.fileservice.minio
command: server --address ":5000" --console-address ":5001" /var/lib/minio/data
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- "5000:5000"
- "5001:5001"
volumes:
- ./minio-data:/var/lib/minio/data
restart: always
projectpet.fileservice.mongodb:
image: mongo:latest
container_name: ProjectPet.fileservice.mongodb
command: mongod -port 5050
ports:
- "5050:5050"
volumes:
- ./mongoDb-data:/data/db
restart: always
projectpet.fileservice.redis:
image: redis:latest
container_name: ProjectPet.fileservice.redis
command: --port 4050
environment:
SKIP_DROP_PRIVS: 1
ports:
- "4050:4050"
volumes:
- ./redis-data:/data
restart: always