-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1bc9f7
commit 338d8ae
Showing
7 changed files
with
61 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
version: '3.7' | ||
|
||
# Settings and configurations that are common for all containers | ||
x-minio-common: &minio-common | ||
image: quay.io/minio/minio:RELEASE.2024-05-01T01-11-10Z | ||
environment: | ||
MINIO_ROOT_USER: ${MINIO_ROOT_USER:?Enter the Minio Root User} | ||
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:?Enter the Minio Root Password} | ||
MINIO_CONSOLE_PORT: ${MINIO_CONSOLE_PORT:?Enter the Minio Console Port} | ||
MINIO_PORT: ${MINIO_PORT:?Enter the Minio Port} | ||
command: server --console-address ":${MINIO_CONSOLE_PORT}" /mnt/data | ||
ports: | ||
- "${MINIO_CONSOLE_PORT}:${MINIO_CONSOLE_PORT}" | ||
- "${MINIO_PORT}:9000" | ||
healthcheck: | ||
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] | ||
interval: 30s | ||
timeout: 20s | ||
retries: 3 | ||
|
||
services: | ||
photobox-minio1: | ||
<<: *minio-common | ||
container_name: photobox-minio1 | ||
hostname: photobox-minio1 | ||
volumes: | ||
- ./minio/data:/mnt/data | ||
photobox-app: | ||
environment: | ||
PORT: ${PORT:?Enter the Port Number to Run the app on} | ||
MINIO_HOST: photobox-minio1 | ||
MINIO_PORT: 9000 | ||
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY:?Enter the Minio Access Key from the Admin Dashboard} | ||
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:?Enter the Minio Secret Key from the Admin Dashboard} | ||
G_TOKEN: ${G_TOKEN:?Enter the Guilded Token} | ||
build: | ||
context: . | ||
dockerfile: ./docker/dev/app.dockerfile | ||
container_name: photobox-app | ||
volumes: | ||
- ./app:/app | ||
ports: | ||
- "${PORT}:${PORT}" | ||
depends_on: | ||
- photobox-minio1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM oven/bun:1.1.7-debian | ||
|
||
WORKDIR /app | ||
|
||
COPY ./app/package.json ./ | ||
|
||
CMD bun i; bun dev; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM oven/bun:1.1.7-debian | ||
|
||
WORKDIR /app | ||
|
||
COPY ./app/package.json ./ | ||
|
||
CMD bun i; bun start; |