-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 804 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (36 loc) · 804 Bytes
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
services:
mongo:
image: mongo:7
restart: always
container_name: gameshop-mongo
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
backend:
build:
context: .
dockerfile: gameshop.server/Dockerfile
container_name: gameshop-backend
ports:
- "7118:80"
environment:
- ASPNETCORE_ENVIRONMENT=Production
- MongoDB__ConnectionString=mongodb://mongo:27017
- MongoDB__DatabaseName=gameshop
- JWT__Secret=Can_be_replaced_with_a_strong_secret
depends_on:
- mongo
frontend:
build:
context: ./gameshop.client
dockerfile: Dockerfile
container_name: gameshop-frontend
volumes:
- ./ssl:/etc/ssl
ports:
- "5173:80"
depends_on:
- backend
volumes:
mongo_data: