2025-05-06 06:45:49 +00:00
|
|
|
name: kurs-platform-app
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
kurs-platform-data_db:
|
|
|
|
|
external: true
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
cdn:
|
|
|
|
|
api-keys:
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
migrator:
|
2025-05-06 11:03:45 +00:00
|
|
|
image: devops.sozsoft.com/kurs/kurs-platform-migrator:latest
|
2025-05-06 06:45:49 +00:00
|
|
|
profiles: ["migrator"]
|
|
|
|
|
environment:
|
|
|
|
|
- ASPNETCORE_ENVIRONMENT=Dev
|
|
|
|
|
- SEED=${SEED}
|
|
|
|
|
networks:
|
|
|
|
|
- kurs-platform-data_db
|
|
|
|
|
api:
|
2025-05-06 11:03:45 +00:00
|
|
|
image: devops.sozsoft.com/kurs/kurs-platform-api:latest
|
2025-05-06 06:45:49 +00:00
|
|
|
profiles: ["app"]
|
|
|
|
|
environment:
|
|
|
|
|
- ASPNETCORE_ENVIRONMENT=Dev
|
|
|
|
|
networks:
|
|
|
|
|
- kurs-platform-data_db
|
|
|
|
|
- default
|
|
|
|
|
volumes:
|
|
|
|
|
- cdn:/etc/api/cdn
|
|
|
|
|
- api-keys:/root/.aspnet/DataProtection-Keys
|
|
|
|
|
ui:
|
2025-05-06 11:03:45 +00:00
|
|
|
image: devops.sozsoft.com/kurs/kurs-platform-ui:latest
|
2025-05-06 06:45:49 +00:00
|
|
|
profiles: ["app"]
|
|
|
|
|
networks:
|
|
|
|
|
- default
|
|
|
|
|
cdn:
|
|
|
|
|
image: tozlu/http-server:latest
|
|
|
|
|
profiles: ["app"]
|
|
|
|
|
networks:
|
|
|
|
|
- default
|
|
|
|
|
working_dir: /srv/http-server
|
|
|
|
|
volumes:
|
|
|
|
|
- cdn:/public:ro
|
|
|
|
|
command: "/public -c10 --cors"
|
|
|
|
|
nginx:
|
|
|
|
|
image: nginx:1.27-alpine
|
|
|
|
|
profiles: ["app"]
|
|
|
|
|
networks:
|
|
|
|
|
- default
|
|
|
|
|
ports:
|
|
|
|
|
- 80:80
|
|
|
|
|
- 443:443
|
|
|
|
|
volumes:
|
|
|
|
|
- ./configs/nginx.conf:/etc/nginx/conf.d/default.conf
|
2025-05-06 11:03:45 +00:00
|
|
|
- ~/sozsoft.com:/etc/ssl/sozsoft.com:ro
|