modified: docker-compose.yaml

delete profiles, comment not useing for now services
This commit is contained in:
2025-07-20 09:03:13 +05:00
parent 845f7e476f
commit 34f5bc62bc
+71 -93
View File
@@ -3,8 +3,6 @@ services:
db:
image: postgres:16
container_name: db
profiles:
- prod
env_file:
- .env
ports:
@@ -17,57 +15,48 @@ services:
- POSTGRES_DB=${PGDATABASE}
restart: unless-stopped
api:
container_name: api
build:
context: ./api
dockerfile: Dockerfile
profiles:
- prod
env_file:
- .env
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
volumes:
- api:/usr/src/app
depends_on:
- db
command: ./bin/api
restart: unless-stopped
# api:
# container_name: api
# build:
# context: ./api
# dockerfile: Dockerfile
# env_file:
# - .env
# ports:
# - "${SERVER_PORT}:${SERVER_PORT}"
# volumes:
# - api:/usr/src/app
# depends_on:
# - db
# command: ./bin/api
# restart: unless-stopped
migrator:
container_name: migrator
profiles:
- prod
build:
context: ./migrator
dockerfile: Dockerfile
env_file:
- .env
depends_on:
- api
- db
volumes:
- goose:/migrations
command: goose up
# migrator:
# container_name: migrator
# build:
# context: ./migrator
# dockerfile: Dockerfile
# env_file:
# - .env
# depends_on:
# - api
# - db
# volumes:
# - goose:/migrations
# command: goose up
spa:
container_name: spa
profiles:
- prod
build:
context: ./spa
dockerfile: Dockerfile
env_file:
- .env
# spa:
# container_name: spa
# build:
# context: ./spa
# dockerfile: Dockerfile
# env_file:
# - .env
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
profiles:
- prod
- dev
env_file: .env
container_name: nginx
restart: unless-stopped
@@ -91,9 +80,6 @@ services:
context: ./certbot
dockerfile: Dockerfile
container_name: certbot
profiles:
- prod
- dev
volumes:
- ./certbot/config:/etc/letsencrypt/config
- certbot_data:/etc/letsencrypt
@@ -106,51 +92,43 @@ services:
- STAGING=0
restart: unless-stopped
keycloak:
build:
context: ./keycloak
dockerfile: Dockerfile
container_name: keycloak
ports:
- "8080:8080"
profiles:
- prod
- dev
- kk
environment:
KC_ADMIN: admin
KC_ADMIN_PASSWORD: admin
PROXY_ADDRESS_FORWARDING: true
KС_HTTPS_PORT: 8443
KС_HTTP_PORT: 8080
KС_LOGLEVEL: INFO
KС_HTTP_PROXY: true
KС_HTTPS_REDIRECT: false
KC_HOSTNAME_STRICT: false
KC_PROXY: passthrough
KC_HTTP_ENABLED: true
KC_HOSTNAME: yalarba.ru
KC_HOSTNAME_STRICT_BACKCHANNEL: false
KC_FRONTEND_URL: https://yalarba.ru/auth
command: start --optimized
networks:
- internal
# keycloak:
# build:
# context: ./keycloak
# dockerfile: Dockerfile
# container_name: keycloak
# ports:
# - "8080:8080"
# environment:
# KC_ADMIN: admin
# KC_ADMIN_PASSWORD: admin
# PROXY_ADDRESS_FORWARDING: true
# KС_HTTPS_PORT: 8443
# KС_HTTP_PORT: 8080
# KС_LOGLEVEL: INFO
# KС_HTTP_PROXY: true
# KС_HTTPS_REDIRECT: false
# KC_HOSTNAME_STRICT: false
# KC_PROXY: passthrough
# KC_HTTP_ENABLED: true
# KC_HOSTNAME: yalarba.ru
# KC_HOSTNAME_STRICT_BACKCHANNEL: false
# KC_FRONTEND_URL: https://yalarba.ru/auth
# command: start --optimized
# networks:
# - internal
kk_db:
image: postgres:16
container_name: kk_db
profiles:
- prod
- dev
- kk
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- keycloak-postgres:/var/lib/postgresql/data
networks:
- internal
# kk_db:
# image: postgres:16
# container_name: kk_db
# environment:
# POSTGRES_DB: keycloak
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: postgres
# volumes:
# - keycloak-postgres:/var/lib/postgresql/data
# networks:
# - internal
volumes:
api: