Skip to content

Commit

Permalink
Remove unsupported options security_opt, removed redis ports from prod
Browse files Browse the repository at this point in the history
  • Loading branch information
audetv committed Mar 27, 2023
1 parent 9fbca49 commit 77c2084
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
18 changes: 0 additions & 18 deletions docker-compose-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ version: "3.9"
services:
cron:
image: crazymax/swarm-cronjob:latest
security_opt:
- no-new-privileges:true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
Expand All @@ -14,8 +12,6 @@ services:

frontend:
image: ${REGISTRY}/fct-search-frontend:${IMAGE_TAG}
security_opt:
- no-new-privileges:true
networks:
- traefik-public
- default
Expand Down Expand Up @@ -71,8 +67,6 @@ services:

app-migration:
image: ${REGISTRY}/fct-search-cli-php:${IMAGE_TAG}
security_opt:
- no-new-privileges:true
environment:
APP_ENV: prod
APP_DEBUG: 0
Expand Down Expand Up @@ -109,8 +103,6 @@ services:

fct-parser:
image: ${REGISTRY}/fct-search-parser:main-2
security_opt:
- no-new-privileges:true
volumes:
- parsed-files:/app/parsed-files
# command: './fct-parser -j -h -a'
Expand All @@ -127,8 +119,6 @@ services:

app-updater:
image: ${REGISTRY}/fct-search-cli-php:${IMAGE_TAG}
security_opt:
- no-new-privileges:true
environment:
APP_ENV: prod
APP_DEBUG: 0
Expand Down Expand Up @@ -173,8 +163,6 @@ services:

app-postgres:
image: postgres:15.1-alpine
security_opt:
- no-new-privileges:true
environment:
POSTGRES_USER: ${APP_POSTGRES_USER}
POSTGRES_PASSWORD_FILE: /run/secrets/app_db_password
Expand All @@ -190,8 +178,6 @@ services:

manticore:
image: manticoresearch/manticore
security_opt:
- no-new-privileges:true
ulimits:
nproc: 65535
nofile:
Expand All @@ -212,12 +198,8 @@ services:

redis:
image: redis:7.0.10
ports:
- "6379:6379"
secrets:
- redis_password
security_opt:
- no-new-privileges:true
command: sh -c 'redis-server --save 60 1 --requirepass "$$(cat /run/secrets/redis_password)"'
volumes:
- session-cache:/data
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ services:
- "6379:6379"
secrets:
- redis_password
security_opt:
- no-new-privileges:true
command: sh -c 'redis-server --save 60 1 --requirepass "$$(cat /run/secrets/redis_password)"'
volumes:
- session-cache:/data
Expand Down

0 comments on commit 77c2084

Please sign in to comment.