Skip to content

Commit

Permalink
Add minio example services to dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmacdonald committed Nov 18, 2023
1 parent 76b64e6 commit d7a6c06
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
21 changes: 21 additions & 0 deletions docker/docker-compose-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ services:
- postgres
networks:
- prod_network
ports:
# This is generally expected to run under a reverse proxy, like Caddy.
- "127.0.0.1:6006:6006"
environment:
GBANS_DATABASE_DSN: postgresql://gbans:gbans@postgres:5432/gbans
GBANS_GENERAL_STEAM_KEY: ${GBANS_GENERAL_STEAM_KEY}
command: ./gbans serve

postgres:
image: postgis/postgis:15-3.3
restart: always
Expand All @@ -30,9 +34,26 @@ services:
networks:
- prod_network

minio:
# Files are currently designed to be served from
image: docker.io/bitnami/minio:2023
restart: always
environment:
# *must* be >= 8 chars or minio will not start
- MINIO_ROOT_USER=gbansgbans
- MINIO_ROOT_PASSWORD=gbansgbans
ports:
- '127.0.0.1:9000:9000'
- '127.0.0.1:9001:9001'
volumes:
- 'minio_data:/bitnami/minio/data'
networks:
- prod_network

volumes:
dl_cache:
gbans_db:
minio_data:

networks:
prod_network:
15 changes: 14 additions & 1 deletion docker/docker-compose-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,27 @@ services:
expose:
- "5434"
ports:
- 5434:5434
- "5434:5434"
environment:
POSTGRES_USER: gbans
POSTGRES_DB: gbans
POSTGRES_PASSWORD: gbans
networks:
- test_network
command: "-p 5434"
minio:
# Files are currently designed to be served from
image: docker.io/bitnami/minio:2023
restart: always
environment:
# *must* be >= 8 chars or minio will not start
- MINIO_ROOT_USER=gbansgbans
- MINIO_ROOT_PASSWORD=gbansgbans
ports:
- '127.0.0.1:9000:9000'
- '127.0.0.1:9001:9001'
networks:
- prod_network

networks:
test_network:

0 comments on commit d7a6c06

Please sign in to comment.