Skip to content

Commit 8e907fc

Browse files
committed
fix: add api service to db_network
1 parent 2f009e7 commit 8e907fc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compose.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ services:
1313
memlock:
1414
soft: -1
1515
hard: -1
16-
volumes: [esdata:/usr/share/elasticsearch/data]
1716
ports: [9200:9200, 9300:9300]
17+
volumes: [esdata:/usr/share/elasticsearch/data]
1818
healthcheck:
1919
test: [CMD-SHELL, curl -s http://localhost:9200 >/dev/null || exit 1]
2020
interval: 1m
@@ -37,14 +37,14 @@ services:
3737
env_file: [.env]
3838
ports: [5432:5432]
3939
volumes: [pgdata:/var/lib/postgresql/data]
40+
networks: [default, db_network]
4041
healthcheck:
4142
test: [CMD, pg_isready, -U, postgres]
4243
interval: 1m
4344
timeout: 30s
4445
retries: 5
4546
start_period: 1m
4647
restart: unless-stopped
47-
networks: [default, db_network]
4848
api:
4949
build:
5050
context: .
@@ -60,10 +60,11 @@ services:
6060
memory: 4G
6161
env_file: [.env]
6262
command: [poetry, run, /app/start-server-dev.sh]
63-
volumes: [.:/app, $HOME/.basedosdados/credentials:/app/credentials:ro]
6463
ports:
6564
- 8080:80 # API port
6665
- 5678:5678 # Debug port
66+
volumes: [.:/app, $HOME/.basedosdados/credentials:/app/credentials:ro]
67+
networks: [default, db_network]
6768
depends_on:
6869
index:
6970
condition: service_healthy

0 commit comments

Comments
 (0)