-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
114 lines (113 loc) · 3.92 KB
/
docker-compose.dev.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
112
113
114
version: '3.7'
services:
db:
image: postgres
restart: always
ports:
- "55433:5432"
volumes:
- ./.cache/docker/db/data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: enty
PGDATA: /var/lib/postgresql/data
mind:
container_name: mind
image: mcr.microsoft.com/dotnet/sdk:6.0
ports:
- "5010:80"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:80
- ConnectionStrings__Default=Database=enty; User ID=postgres; Password=password; Host=db; Port=5432;
volumes:
- ./src:/enty/src
- ./lib:/enty/lib
- ./.cache/docker/mind/.dotnet:/root/.dotnet
- ./.cache/docker/mind/.local/share/NuGet:/root/.local/share/NuGet
- ./.cache/docker/mind/.nuget:/root/.nuget
- ./.cache/docker/mind/bin:/enty/src/enty.Mind.Server/bin
- ./.cache/docker/mind/obj:/enty/src/enty.Mind.Server/obj
working_dir: /enty/src/enty.Mind.Server
depends_on:
- db
command: >
bash -c "
set -e
dotnet dev-certs https --trust
dotnet watch run
"
storage:
container_name: storage
image: mcr.microsoft.com/dotnet/sdk:6.0
ports:
- "5020:80"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:80
- Storage__Path=./storage/
volumes:
- ./src:/enty/src
- ./lib:/enty/lib
- ./.cache/docker/storage/.dotnet:/root/.dotnet
- ./.cache/docker/storage/.local/share/NuGet:/root/.local/share/NuGet
- ./.cache/docker/storage/.nuget:/root/.nuget
- ./.cache/docker/storage/storage:/enty/src/enty.ResourceStorage.Server/storage
- ./.cache/docker/storage/bin:/enty/src/enty.ResourceStorage.Server/bin
- ./.cache/docker/storage/obj:/enty/src/enty.ResourceStorage.Server/obj
working_dir: /enty/src/enty.ResourceStorage.Server
command: dotnet watch run
imaginary:
container_name: imaginary
image: h2non/imaginary
network_mode: host
environment:
- PORT=9000
command: -enable-url-source
imaginary-cache:
image: nginx
volumes:
- ./src/Web/caching-layer:/etc/nginx/templates
extra_hosts:
- host.docker.internal:host-gateway
environment:
- PORT=80
- PROXY_PASS=http://host.docker.internal:9000/
# webapp:
# container_name: webapp
## image: prunkles/dotnet-node:dotnet-sdk-6.0_node-16
# image: mcr.microsoft.com/dotnet/sdk:6.0
# ports:
# - "8080:8080"
# environment:
# - NODE_ENV=development
# volumes:
# - .:/enty
# - ./.cache/docker/webapp/.dotnet:/root/.dotnet
# - ./.cache/docker/webapp/.local/share/NuGet:/root/.local/share/NuGet
# - ./.cache/docker/webapp/.nuget:/root/.nuget
# - ./.cache/docker/webapp/node_modules:/enty/src/Web/node_modules
# working_dir: /enty/src/Web
# depends_on:
# - mind-gateway
# - storage
# entrypoint: >
# bash -c "
# dotnet tool restore
# dotnet fable #npm run watch
# "
webapp:
container_name: webapp
build:
context: .
dockerfile: ./src/Web/Dockerfile
ports:
- "8080:80"
environment:
- ENTY_MIND_ADDRESS=http://mind/
- ENTY_STORAGE_ADDRESS=http://localhost:5020/
- ENTY_IMAGE_THUMBNAIL_ADDRESS=http://imaginary-cache/
depends_on:
- mind
- storage