-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
23 lines (22 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
23 lines (22 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# https://www.youtube.com/watch?v=gAkwW2tuIqE Learn Docker in 7 Easy Steps - Full Beginner's Tutorial
# https://stackoverflow.com/questions/78500319/how-to-pull-model-automatically-with-container-creation
services:
ollama:
container_name: ollama
image: ollama/ollama:latest # build . not needed as a pre-defined image from Docker is loaded
ports:
- 11434:11434
volumes:
- ./entrypoint.sh:/entrypoint.sh
entrypoint: ["/usr/bin/bash", "/entrypoint.sh"] # start a terminal and run the script; overrides the image's pre-existing routine/script (image pulled above). Is used as container has ONE FIXED JOB.
app:
container_name: CodeInsight
build: . # Dockerfile in current directory; this signifies that the Image is in the current directory and that is used to build the container.
image: sneaky-gremlin/code-insight-image # Name of the image of CodeInsight('s front-end); as build was explicitly included above, this is ONLY a rename. the en
ports:
- "3000:3000" # Expose port and set port-forwarding
environment:
- PORT=3000 # Set environment for running; could be inside Dockerfile directly.
depends_on:
- ollama # out of circumspection.
command: npm start # script to run for app