File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,57 @@ Create a `.env.local` file:
7979NEXT_PUBLIC_API_URL=http://localhost:8000
8080```
8181
82+ ### Docker
83+
84+ Build and run the application using Docker:
85+
86+ ``` bash
87+ # Build the image
88+ docker build -t neuronlab-frontend .
89+
90+ # Run the container
91+ docker run -p 3000:3000 -e NEXT_PUBLIC_API_URL=http://localhost:8000 neuronlab-frontend
92+ ```
93+
94+ Or pull from GitHub Container Registry:
95+
96+ ``` bash
97+ # Pull the latest image
98+ docker pull ghcr.io/neuronlab-id/frontend:latest
99+
100+ # Run the container
101+ docker run -p 3000:3000 -e NEXT_PUBLIC_API_URL=http://localhost:8000 ghcr.io/neuronlab-id/frontend:latest
102+ ```
103+
104+ #### Docker Compose
105+
106+ Create a ` docker-compose.yml ` :
107+
108+ ``` yaml
109+ version : ' 3.8'
110+
111+ services :
112+ frontend :
113+ image : ghcr.io/neuronlab-id/frontend:latest
114+ ports :
115+ - " 3000:3000"
116+ environment :
117+ - NEXT_PUBLIC_API_URL=http://backend:8000
118+ depends_on :
119+ - backend
120+
121+ backend :
122+ image : ghcr.io/neuronlab-id/backend:latest
123+ ports :
124+ - " 8000:8000"
125+ ` ` `
126+
127+ Run with:
128+
129+ ` ` ` bash
130+ docker-compose up -d
131+ ```
132+
82133## Project Structure
83134
84135```
You can’t perform that action at this time.
0 commit comments