Dachi
Dachi
CC#
Created by Dachi on 12/12/2024 in #help
docker
@Keswiik
23 replies
CC#
Created by Dachi on 12/12/2024 in #help
docker
changes were added - ASPNETCORE_KestrelCertificatesDefaultPath=/https/aspnetapp.pfx - ASPNETCORE_KestrelCertificatesDefaultPassword=654123 and volumes: - ~/.aspnet/https:/https:ro
23 replies
CC#
Created by Dachi on 12/12/2024 in #help
docker
Okay after a lot of digging i made it work. But i am not sure how well it is written. Maybe i could use some help with code ogranizaiton/best practices.
carvedrock.api:
image: carvedrock.api
build:
context: .
dockerfile: CarvedRock.Api/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8080
- ASPNETCORE_HTTPS_PORTS=8081
- SeqAddress=http://seq:5341
- ConnectionStrings__CarvedRockPostgres=Host=pgdb;Port=5432;Database=carvedrock;Username=postgres;Password=C0nt*inersAreGreat;
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
- ASPNETCORE_Kestrel__Certificates__Default__Password=654123
ports:
- "8080"
- "8081"
volumes:
- ~/.aspnet/https:/https:ro
carvedrock.api:
image: carvedrock.api
build:
context: .
dockerfile: CarvedRock.Api/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8080
- ASPNETCORE_HTTPS_PORTS=8081
- SeqAddress=http://seq:5341
- ConnectionStrings__CarvedRockPostgres=Host=pgdb;Port=5432;Database=carvedrock;Username=postgres;Password=C0nt*inersAreGreat;
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
- ASPNETCORE_Kestrel__Certificates__Default__Password=654123
ports:
- "8080"
- "8081"
volumes:
- ~/.aspnet/https:/https:ro
23 replies
CC#
Created by Dachi on 12/12/2024 in #help
docker
okay i'll look it up
23 replies
CC#
Created by Dachi on 12/12/2024 in #help
docker
I don't really know, i just followed video. this is my first docker setup
23 replies
CC#
Created by Dachi on 12/12/2024 in #help
docker
When i looked up problem everybody said to expose /Users but it still doesnt work
23 replies
CC#
Created by Dachi on 12/12/2024 in #help
docker
No description
23 replies
CC#
Created by Dachi on 12/12/2024 in #help
docker
i'll take a screenshot
23 replies
CC#
Created by Dachi on 12/12/2024 in #help
docker
I am using rider, mac.
23 replies
CC#
Created by Dachi on 12/12/2024 in #help
docker
i am trying to run api thru docker, but everytime there is new error
23 replies
CC#
Created by Dachi on 12/12/2024 in #help
docker
I ve been stuck on this problem for a week
23 replies
CC#
Created by Dachi on 12/12/2024 in #help
docker
@KeswiikSorry for late response. This is compose.yml
services:
carvedrock.api:
image: carvedrock.api
build:
context: .
dockerfile: CarvedRock.Api/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8080
- ASPNETCORE_HTTPS_PORTS=8081
- SeqAddress=http://seq:5341
- ConnectionStrings__CarvedRockPostgres=Host=pgdb;Port=5432;Database=carvedrock;Username=postgres;Password=carvedrock;
ports:
- "8080"
- "8081"
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro
seq:
image: datalust/seq:latest
ports:
- "5330:80"
environment:
- ACCEPT_EULA=Y

pgdb:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: C0nt*inersAreGreat
ports:
- '5444:5432'

services:
carvedrock.api:
image: carvedrock.api
build:
context: .
dockerfile: CarvedRock.Api/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8080
- ASPNETCORE_HTTPS_PORTS=8081
- SeqAddress=http://seq:5341
- ConnectionStrings__CarvedRockPostgres=Host=pgdb;Port=5432;Database=carvedrock;Username=postgres;Password=carvedrock;
ports:
- "8080"
- "8081"
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro
seq:
image: datalust/seq:latest
ports:
- "5330:80"
environment:
- ACCEPT_EULA=Y

pgdb:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: C0nt*inersAreGreat
ports:
- '5444:5432'

23 replies
CC#
Created by Dachi on 12/9/2024 in #help
Docker
@surf68@JohnStooberthanks both of you for your time and help
86 replies
CC#
Created by Dachi on 12/9/2024 in #help
Docker
i just simply changed port it is running
86 replies
CC#
Created by Dachi on 12/9/2024 in #help
Docker
cuz for some reason something is running on that port
86 replies
CC#
Created by Dachi on 12/9/2024 in #help
Docker
so i should just use another port
86 replies
CC#
Created by Dachi on 12/9/2024 in #help
Docker
i checked its killed
86 replies
CC#
Created by Dachi on 12/9/2024 in #help
Docker
done
86 replies
CC#
Created by Dachi on 12/9/2024 in #help
Docker
yes
86 replies
CC#
Created by Dachi on 12/9/2024 in #help
Docker
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 62d69a2a3132 nginx "/docker-entrypoint.…" 5 minutes ago Up 5 minutes 0.0.0.0:17839->80/tcp hopeful_galileo
86 replies