Skip to content

Commit

Permalink
ci: Upgrading docker compose syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Apr 7, 2023
1 parent 658ae6f commit 9a16b9b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ bin/
release/
coverage.*
.env
.env.compose

# NPM
node_modules/
Expand Down
18 changes: 7 additions & 11 deletions docker-compose.yaml → compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: '2.1'
version: '3.9'

services:
service:
Expand All @@ -14,27 +14,24 @@ services:
ports:
- '1080:1080/tcp'
volumes:
- ${DATA_DIR}:/data
- /tmp:/tmp
- '${DATA_DIR}:/data'
- '/tmp:/tmp'
depends_on:
- redis
- rabbit
- exas
- vith
user: '${DATA_USER_ID}'
restart: on-failure
read_only: true

redis:
image: redis
restart: on-failure
read_only: true

rabbit:
image: rabbitmq:3-alpine
environment:
RABBITMQ_DEFAULT_VHOST: fibr
restart: on-failure

exas:
image: vibioh/exas
Expand All @@ -43,25 +40,24 @@ services:
EXAS_GEOCODE_URL: 'https://nominatim.openstreetmap.org'
EXAS_STORAGE_FILE_SYSTEM_DIRECTORY: '/data'
volumes:
- ${DATA_DIR}:/data
- '${DATA_DIR}:/data'
depends_on:
- rabbit
user: '${DATA_USER_ID}'
restart: on-failure
read_only: true

vith:
image: vibioh/vith
environment:
VITH_AMQP_URI: 'amqp://guest:guest@rabbit/fibr'
VITH_STORAGE_FILE_SYSTEM_DIRECTORY: '/data'
volumes:
- ${DATA_DIR}:/data
- '${DATA_DIR}:/data'
depends_on:
- rabbit
- image
user: '${DATA_USER_ID}'
restart: on-failure
read_only: true

image:
image: h2non/imaginary
restart: on-failure

0 comments on commit 9a16b9b

Please sign in to comment.