Skip to content

Commit 6f1ffee

Browse files
Merge pull request #22 from CoolCoderCarl/feature/FUNC_6
Update Containerfile & docker-compose.yaml
2 parents 9d8ff54 + 9e21d35 commit 6f1ffee

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

Containerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ COPY requirements.txt requirements.txt
1010

1111
RUN pip3 install -U pip
1212
RUN pip3 install --no-cache-dir -r requirements.txt
13-
RUN apt update -y && \
14-
apt install curl jq -y
1513

1614
FROM builder
1715

docker-compose.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ services:
1010
- etl
1111
ports:
1212
- "8888:8888"
13-
# healthcheck:
14-
# test: "curl http://attainments_sanctuary:8888/healthcheck | jq -r '.healthcheck'"
15-
# interval: 5s
16-
# timeout: 5s
17-
# retries: 20
18-
# start_period: 5s
13+
healthcheck:
14+
test: "curl http://attainments_sanctuary:8888/healthcheck | jq -r '.healthcheck'"
15+
start_period: 5s
16+
interval: 5s
17+
timeout: 5s
18+
retries: 20
1919

2020
epistolary:
2121
container_name: epistolary
@@ -26,7 +26,8 @@ services:
2626
- etl
2727
hostname: epistolary
2828
depends_on:
29-
- "attainments_sanctuary"
29+
attainments_sanctuary:
30+
condition: service_healthy
3031
volumes:
3132
- "./settings.toml:/opt/settings.toml"
3233

@@ -37,8 +38,10 @@ services:
3738
restart: always
3839
networks:
3940
- etl
41+
hostname: datapath
4042
depends_on:
41-
- "attainments_sanctuary"
43+
attainments_sanctuary:
44+
condition: service_healthy
4245
volumes:
4346
- "./settings.toml:/opt/settings.toml"
4447

0 commit comments

Comments
 (0)