From 334339ee15b4bb16468051161674fe0f5f838c15 Mon Sep 17 00:00:00 2001 From: Fries Date: Sun, 6 Nov 2022 19:04:57 -0800 Subject: [PATCH] change links to depends_on in docker-compose.yml links is a deprecated docker feature which doesn't work in podman so i changed it so it uses depends_on instead. you have to change your configuration to point to the name of the docker container like db as its hostname. --- docker-compose.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3017d3ffc..7f55e8b7d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,35 +2,34 @@ version: "3" services: web: - image: thatonecalculator/calckey + image: docker.io/thatonecalculator/calckey build: . restart: always - links: + depends_on: - db - redis # - es ports: - "3000:3000" networks: - - internal_network - - external_network + - network volumes: - ./files:/calckey/files - ./.config:/calckey/.config:ro redis: restart: always - image: redis:4.0-alpine + image: docker.io/redis:4.0-alpine networks: - - internal_network + - network volumes: - ./redis:/data db: restart: always - image: postgres:12.2-alpine + image: docker.io/postgres:12.2-alpine networks: - - internal_network + - network env_file: - .config/docker.env volumes: @@ -43,11 +42,9 @@ services: # - "ES_JAVA_OPTS=-Xms512m -Xmx512m" # - "TAKE_FILE_OWNERSHIP=111" # networks: -# - internal_network +# - network # volumes: # - ./elasticsearch:/usr/share/elasticsearch/data networks: - internal_network: - internal: true - external_network: + network: