-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 971 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (44 loc) · 971 Bytes
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
46
services:
frontend:
env_file:
- ./frontend/.env
build:
context: ./frontend
dockerfile: Dockerfile
args:
NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL}
NEXT_PUBLIC_SUPABASE_URL: ${NEXT_PUBLIC_SUPABASE_URL}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${NEXT_PUBLIC_SUPABASE_ANON_KEY}
ports:
- "3000:3000"
depends_on:
- backend
command: npm run dev
develop:
watch:
- action: sync+restart
path: ./frontend
target: /app
networks:
- app-network
container_name: frontend
backend:
build:
context: ./backend
ports:
- "8080:8080"
- "10000:10000"
env_file:
- ./backend/.env
command: go run main.go
develop:
watch:
- action: sync+restart
path: ./backend
target: /app
networks:
- app-network
container_name: backend
networks:
app-network:
driver: bridge