Skip to content

Commit

Permalink
Corrige le docker-compose des livraisons
Browse files Browse the repository at this point in the history
Change-Id: I3ebb980dbad9014310e0ef8046296ee87fdc577a
  • Loading branch information
Renaud-Kieffer committed Feb 27, 2024
1 parent 1f25725 commit d9a8927
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 26 deletions.
1 change: 1 addition & 0 deletions vagrantV2/docker/.env
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ API_REMOCRA_HTTP_PORT=8881
POSTGRES_DB_PORT=5432
POSTGRES_DB_NAME=remocra
POSTGRES_DB_SERVERNAME=postgis.sdisxx.fr
STOCKAGE_REMOCRA=/var/remocra/hydrants
32 changes: 6 additions & 26 deletions vagrantV2/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ services:
timeout: 10s
retries: 3
network_mode: host
restart: always

remocra:
container_name: remocra
Expand Down Expand Up @@ -61,32 +62,8 @@ services:
timeout: 10s
retries: 3
network_mode: host

api:
container_name: remocra-api
image: remocra-api
user: "${REMOCRA_UID:-2000}:${REMOCRA_GID:-2000}"
build:
context: ../api-remocra/
dockerfile: ./dist/Dockerfile
volumes:
- ../api-remocra/dist/example/log:/app/log
- ../api-remocra/dist/example/config:/app/config:ro
environment:
POSTGRES_DB_SERVERNAME: ${POSTGRES_DB_SERVERNAME:-localhost}
POSTGRES_DB_USERNAME: ${POSTGRES_DB_USERNAME}
POSTGRES_DB_PASSWORD: ${POSTGRES_DB_PASSWORD}
POSTGRES_DB_PORT: ${POSTGRES_DB_PORT}
POSTGRES_DB_NAME: ${POSTGRES_DB_NAME}
API_REMOCRA_HTTP_PORT: ${API_REMOCRA_HTTP_PORT}
ports:
- "8881:8881"
healthcheck:
test: curl --fail -s http://localhost:8881/openapi/ || exit 1
interval: 1m30s
timeout: 10s
retries: 3
network_mode: host
restart: always


jobs-4.4:
container_name: remocra-pdi-4.4-dkron
Expand Down Expand Up @@ -124,6 +101,7 @@ services:
timeout: 10s
retries: 3
network_mode: host
restart: always

jobs:
container_name: remocra-pdi-dkron
Expand Down Expand Up @@ -162,6 +140,7 @@ services:
timeout: 10s
retries: 3
network_mode: host
restart: always

api:
container_name: remocra-api
Expand All @@ -170,6 +149,7 @@ services:
volumes:
- ./api/log:/app/log
- ./api/config:/app/config:ro
- ${STOCKAGE_REMOCRA:-/var/remocra/hydrants}:/var/remocra/hydrants
environment:
POSTGRES_DB_SERVERNAME: ${POSTGRES_DB_SERVERNAME:-localhost}
POSTGRES_DB_USERNAME: ${POSTGRES_DB_USERNAME}
Expand Down

0 comments on commit d9a8927

Please sign in to comment.