generated from cp-20/nextjs-with-mantine-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
45 lines (44 loc) · 1.43 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '3'
services:
web:
container_name: web
build:
context: .
dockerfile: ./apps/web/Dockerfile
args:
API_ENDPOINT: http://server:8000/api
NEXT_PUBLIC_SUPABASE_URL: ${NEXT_PUBLIC_SUPABASE_URL-http://localhost:54321}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${NEXT_PUBLIC_SUPABASE_ANON_KEY?NEXT_PUBLIC_SUPABASE_ANON_KEY is required}
NEXT_PUBLIC_SUPABASE_AUTH_COOKIE_NAME: ${NEXT_PUBLIC_SUPABASE_AUTH_COOKIE_NAME}
restart: always
ports:
- 3000:3000
environment:
API_ENDPOINT: http://server/api
extra_hosts:
- 'host.docker.internal:host-gateway'
server:
container_name: server
build:
context: .
dockerfile: ./apps/server/Dockerfile
restart: always
ports:
- 8000:8000
environment:
SUPABASE_URL: ${SUPABASE_URL-http://host.docker.internal:54321}
SUPABASE_SERVICE_ROLE_KEY: ${SUPABASE_SERVICE_ROLE_KEY?SUPABASE_SERVICE_ROLE_KEY is required}
DATABASE_URL: ${DATABASE_URL-postgresql://postgres:[email protected]:54322/postgres}
NEXT_PUBLIC_SUPABASE_AUTH_COOKIE_NAME: ${NEXT_PUBLIC_SUPABASE_AUTH_COOKIE_NAME}
extra_hosts:
- 'host.docker.internal:host-gateway'
swagger-viewer:
container_name: swagger-viewer
build:
context: .
dockerfile: ./apps/swagger-viewer/Dockerfile
restart: always
ports:
- 4173:4173
environment:
VITE_API_ENDPOINT: http://server/api