-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
46 lines (44 loc) · 1.16 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
services:
dotnet:
build:
context: ./api
dockerfile: ./JassSpace.Api/Dockerfile
ports:
- "5001:8080"
env_file:
- .env
environment:
- ApplyMigrationsOnStartup=true
- ConnectionStrings__Redis=${DOCKER_REDIS_CONNECTION:-host.docker.internal:6379,abortConnect=false}
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- /home/jassi/deployments/JassSpace/.logs/dotnet:/app/logs/dotnet
- /home/jassi/deployments/JassSpace/.cache:/app/cache
restart: unless-stopped
dotnet-tests:
build:
context: ./api
dockerfile: ./JassSpace.Api/Dockerfile
target: test
profiles:
- test
environment:
- DOTNET_CLI_TELEMETRY_OPTOUT=1
- DOTNET_NOLOGO=1
restart: "no"
nextjs:
build:
context: ./ui
dockerfile: Dockerfile
args:
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL}
ports:
- "3001:3000"
environment:
- NODE_ENV=production
restart: unless-stopped
# Uncomment and add environment variables as needed
# environment:
# - NEXT_PUBLIC_API_URL=http://localhost:z
# - DATABASE_URL=your_database_url