docker-compose.yaml (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
services: server: build: . ports: - "4000:4000" volumes: - .:/usr/src/app command: air ./cmd/main.go -b 0.0.0.0 minio: image: quay.io/minio/minio:latest command: server --console-address ":9001" /data restart: always ports: - "9000:9000" - "9001:9001" expose: - "9000" - "9001" volumes: - minio-volume:/data postgres: image: postgres:alpine environment: - POSTGRES_USER=test - POSTGRES_PASSWORD=test - POSTGRES_DB=test ports: - "5432:5432" volumes: - postgres-volume:/var/lib/postgresql/data volumes: minio-volume: postgres-volume: |