refactor(project): Update docker-compose files to use depends_on (#10649)

Because

- Docker's 'links' feature has been deprecated and is no longer
recommended for use

This commit

- Replaces all occurrences of 'links' with 'depends_on' in
docker-compose files

Fixes #10592

Co-authored-by: Rana Al-Khulaidi <ralkhulaidi@FQC47J6GCH.local>
This commit is contained in:
Rana Al-Khulaidi 2024-05-03 11:46:17 -04:00 коммит произвёл GitHub
Родитель 1d967776ea
Коммит 649c9ec6e0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
5 изменённых файлов: 16 добавлений и 16 удалений

Просмотреть файл

@ -6,7 +6,7 @@ services:
context: cirrus/server/
dockerfile: Dockerfile
env_file: .env
links:
depends_on:
- kinto
volumes:
- ./cirrus/server/:/cirrus
@ -21,7 +21,7 @@ services:
ports:
- '3002:3002'
restart: always
links:
depends_on:
- cirrus
environment:
- CIRRUS=http://cirrus:8001
@ -33,7 +33,7 @@ services:
ports:
- '8080:3000'
restart: always
links:
depends_on:
- demo-app-server
environment:
- DEMO_APP_SERVER=http://demo-app-server:3002

Просмотреть файл

@ -11,7 +11,7 @@ services:
volumes:
- .:/code
- /code/experimenter/tests/integration/.tox
links:
depends_on:
- nginx
- kinto
- ping-server
@ -30,7 +30,7 @@ services:
- .:/code
- /code/experimenter/tests/integration/.tox
working_dir: /code
links:
depends_on:
- nginx
- kinto
ping-server:

Просмотреть файл

@ -9,7 +9,7 @@ services:
- USE_YARN_DEV=False
stdin_open: true
tty: true
links:
depends_on:
- db
- redis
- kinto
@ -22,7 +22,7 @@ services:
worker:
image: experimenter:deploy
env_file: .env
links:
depends_on:
- db
- redis
command: bash -c "/experimenter/bin/wait-for-it.sh db:5432 -- celery -A experimenter worker -l DEBUG"
@ -30,7 +30,7 @@ services:
beat:
image: experimenter:deploy
env_file: .env
links:
depends_on:
- db
- redis
command: bash -c "/experimenter/bin/wait-for-it.sh db:5432 -- celery -A experimenter beat --pidfile /celerybeat.pid -s /celerybeat-schedule -l DEBUG"
@ -38,7 +38,7 @@ services:
nginx:
build: ./nginx
env_file: .env
links:
depends_on:
- experimenter
ports:
- "443:443"
@ -64,7 +64,7 @@ services:
KINTO_INI: /etc/kinto.ini
ports:
- "8888:8888"
links:
depends_on:
- autograph
volumes:
- ./kinto/server.ini:/etc/kinto.ini

Просмотреть файл

@ -10,7 +10,7 @@ services:
- CIRCLE_BRANCH
volumes:
- ./docs/experimenter:/experimenter/experimenter/docs
links:
depends_on:
- db
db:

Просмотреть файл

@ -6,7 +6,7 @@ services:
env_file: .env
stdin_open: true
tty: true
links:
depends_on:
- db
- redis
- kinto
@ -54,7 +54,7 @@ services:
worker:
image: experimenter:dev
env_file: .env
links:
depends_on:
- db
- redis
volumes:
@ -65,7 +65,7 @@ services:
beat:
image: experimenter:dev
env_file: .env
links:
depends_on:
- db
- redis
volumes:
@ -76,7 +76,7 @@ services:
nginx:
build: ./nginx
env_file: .env
links:
depends_on:
- experimenter
ports:
- "443:443"
@ -102,7 +102,7 @@ services:
KINTO_INI: /etc/kinto.ini
ports:
- "8888:8888"
links:
depends_on:
- autograph
volumes:
- ./kinto/server.ini:/etc/kinto.ini