Skip to content

Commit

Permalink
(BSR)[API] chore: add docker compose file for M1/M2 chips
Browse files Browse the repository at this point in the history
The default postgis image is unstable with M1/M2 arch because the build is
for amd64 and it crashes the Qemu.
For more details about the issue, see:
postgis/docker-postgis#216
  • Loading branch information
xordoquy committed Mar 6, 2024
1 parent 1181316 commit 245bc7e
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions docker-compose-backend-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
version: "3.7"

services:
postgres:
image: imresamu/postgis-arm64:15-3.4
extends:
file: docker-compose-backend.yml
service: postgres

postgres-test:
image: imresamu/postgis-arm64:15-3.4
extends:
file: docker-compose-backend.yml
service: postgres-test

flask:
extends:
file: docker-compose-backend.yml
service: flask

backoffice:
extends:
file: docker-compose-backend.yml
service: backoffice

redis:
extends:
file: docker-compose-backend.yml
service: redis

nginx:
extends:
file: docker-compose-backend.yml
service: nginx

networks:
db_nw:
driver: bridge
web_nw:
driver: bridge

volumes:
postgres_data:
postgres_data_test:
redis_data:

0 comments on commit 245bc7e

Please sign in to comment.