Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
big-agi-custom-deployment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sofiane Lasri
big-agi-custom-deployment
Commits
7848dc69
Commit
7848dc69
authored
2 months ago
by
Sofiane Lasri
Browse files
Options
Downloads
Patches
Plain Diff
initial comit
parents
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#1099
failed
2 months ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+19
-0
19 additions, 0 deletions
Dockerfile
docker-compose.yml
+40
-0
40 additions, 0 deletions
docker-compose.yml
with
59 additions
and
0 deletions
Dockerfile
0 → 100644
+
19
−
0
View file @
7848dc69
FROM
ghcr.io/enricoros/big-agi:development
RUN
apk add
--no-cache
openssl
WORKDIR
/app
RUN
mv
middleware_BASIC_AUTH.ts middleware.ts
ENV
NODE_ENV=production
RUN
npm run build
# Copy Built app
COPY
--from=builder --chown=nextjs:nodejs /app/public ./public
COPY
--from=builder --chown=nextjs:nodejs /app/.next ./.next
COPY
--from=builder --chown=nextjs:nodejs /app/node_modules ./node_modules
COPY
--from=builder --chown=nextjs:nodejs /app/src/server/prisma ./src/server/prisma
# Start the application
CMD
["next", "start"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker-compose.yml
0 → 100644
+
40
−
0
View file @
7848dc69
services
:
big-agi
:
build
:
.
ports
:
-
"
1004:3000"
command
:
[
"
next"
,
"
start"
,
"
-p"
,
"
3000"
]
deploy
:
resources
:
limits
:
cpus
:
'
0.2'
memory
:
256M
reservations
:
memory
:
128M
restart
:
unless-stopped
environment
:
-
POSTGRES_PRISMA_URL=postgresql://bigagi:${POSTGRES_PASSWORD}@postgres:5432/bigagi?schema=public
depends_on
:
-
postgres
postgres
:
image
:
postgres:15-alpine
volumes
:
-
postgres_data:/var/lib/postgresql/data
environment
:
-
POSTGRES_USER=bigagi
-
POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
-
POSTGRES_DB=bigagi
restart
:
unless-stopped
deploy
:
resources
:
limits
:
cpus
:
'
0.3'
memory
:
512M
watchtower
:
image
:
containrrr/watchtower
volumes
:
-
/var/run/docker.sock:/var/run/docker.sock
command
:
--schedule "0 0 * * *" --cleanup
restart
:
unless-stopped
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment