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: db:
image: postgres:16 image: postgres:16
container_name: db container_name: db
profiles:
- prod
env_file: env_file:
- .env - .env
ports: ports:
@@ -17,57 +15,48 @@ services:
- POSTGRES_DB=${PGDATABASE} - POSTGRES_DB=${PGDATABASE}
restart: unless-stopped restart: unless-stopped
api: # api:
container_name: api # container_name: api
build: # build:
context: ./api # context: ./api
dockerfile: Dockerfile # dockerfile: Dockerfile
profiles: # env_file:
- prod # - .env
env_file: # ports:
- .env # - "${SERVER_PORT}:${SERVER_PORT}"
ports: # volumes:
- "${SERVER_PORT}:${SERVER_PORT}" # - api:/usr/src/app
volumes: # depends_on:
- api:/usr/src/app # - db
depends_on: # command: ./bin/api
- db # restart: unless-stopped
command: ./bin/api
restart: unless-stopped
migrator: # migrator:
container_name: migrator # container_name: migrator
profiles: # build:
- prod # context: ./migrator
build: # dockerfile: Dockerfile
context: ./migrator # env_file:
dockerfile: Dockerfile # - .env
env_file: # depends_on:
- .env # - api
depends_on: # - db
- api # volumes:
- db # - goose:/migrations
volumes: # command: goose up
- goose:/migrations
command: goose up
spa: # spa:
container_name: spa # container_name: spa
profiles: # build:
- prod # context: ./spa
build: # dockerfile: Dockerfile
context: ./spa # env_file:
dockerfile: Dockerfile # - .env
env_file:
- .env
nginx: nginx:
build: build:
context: ./nginx context: ./nginx
dockerfile: Dockerfile dockerfile: Dockerfile
profiles:
- prod
- dev
env_file: .env env_file: .env
container_name: nginx container_name: nginx
restart: unless-stopped restart: unless-stopped
@@ -91,9 +80,6 @@ services:
context: ./certbot context: ./certbot
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: certbot container_name: certbot
profiles:
- prod
- dev
volumes: volumes:
- ./certbot/config:/etc/letsencrypt/config - ./certbot/config:/etc/letsencrypt/config
- certbot_data:/etc/letsencrypt - certbot_data:/etc/letsencrypt
@@ -106,51 +92,43 @@ services:
- STAGING=0 - STAGING=0
restart: unless-stopped restart: unless-stopped
keycloak: # keycloak:
build: # build:
context: ./keycloak # context: ./keycloak
dockerfile: Dockerfile # dockerfile: Dockerfile
container_name: keycloak # container_name: keycloak
ports: # ports:
- "8080:8080" # - "8080:8080"
profiles: # environment:
- prod # KC_ADMIN: admin
- dev # KC_ADMIN_PASSWORD: admin
- kk # PROXY_ADDRESS_FORWARDING: true
environment: # KС_HTTPS_PORT: 8443
KC_ADMIN: admin # KС_HTTP_PORT: 8080
KC_ADMIN_PASSWORD: admin # KС_LOGLEVEL: INFO
PROXY_ADDRESS_FORWARDING: true # KС_HTTP_PROXY: true
KС_HTTPS_PORT: 8443 # KС_HTTPS_REDIRECT: false
KС_HTTP_PORT: 8080 # KC_HOSTNAME_STRICT: false
KС_LOGLEVEL: INFO # KC_PROXY: passthrough
KС_HTTP_PROXY: true # KC_HTTP_ENABLED: true
KС_HTTPS_REDIRECT: false # KC_HOSTNAME: yalarba.ru
KC_HOSTNAME_STRICT: false # KC_HOSTNAME_STRICT_BACKCHANNEL: false
KC_PROXY: passthrough # KC_FRONTEND_URL: https://yalarba.ru/auth
KC_HTTP_ENABLED: true # command: start --optimized
KC_HOSTNAME: yalarba.ru # networks:
KC_HOSTNAME_STRICT_BACKCHANNEL: false # - internal
KC_FRONTEND_URL: https://yalarba.ru/auth
command: start --optimized
networks:
- internal
kk_db: # kk_db:
image: postgres:16 # image: postgres:16
container_name: kk_db # container_name: kk_db
profiles: # environment:
- prod # POSTGRES_DB: keycloak
- dev # POSTGRES_USER: postgres
- kk # POSTGRES_PASSWORD: postgres
environment: # volumes:
POSTGRES_DB: keycloak # - keycloak-postgres:/var/lib/postgresql/data
POSTGRES_USER: postgres # networks:
POSTGRES_PASSWORD: postgres # - internal
volumes:
- keycloak-postgres:/var/lib/postgresql/data
networks:
- internal
volumes: volumes:
api: api: