forked from darkade-games/darkade-games-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
72 lines (65 loc) · 1.47 KB
/
compose.dev.yml
File metadata and controls
72 lines (65 loc) · 1.47 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Run:
# docker compose up
# docker compose up --watch -d (Use this normally)
#
# Rebuild and run:
# docker compose build
# docker compose up --watch -d
#
# Stop:
# docker compose down
#
# Stop and delete everything
# docker compose down -v
include:
- path: supabase/docker-compose.yml
env_file: ./supabase/.env
# - supabase/dev/docker-compose.dev.yml
services:
nginx:
container_name: nginx
build:
context: ./nginx
dockerfile: Dockerfile
depends_on:
- kong
- web_app
ports:
- "80:80"
- "443:443"
environment:
- NGINX_SERVER_NAME=${NGINX_SERVER_NAME}
networks:
- nginx-net
# https://github.com/vercel/next.js/blob/canary/examples/with-docker-compose/README.md
web_app:
container_name: web_app
build:
context: ./web-app
dockerfile: dev.Dockerfile
platform: linux/amd64
env_file:
- .env
environment:
- SUPABASE_INTERNAL_URL=http://supabase-kong:8000
develop:
watch:
# Sync source files
- action: sync
path: ./web-app/src
target: /app/src
- action: sync
path: ./web-app/public
target: /app/public
# Rebuild when dependencies or config change
- action: rebuild
path: ./web-app/package.json
- action: rebuild
path: ./web-app/pnpm-lock.yaml
ports:
- "3000:3000"
networks:
- nginx-net
networks:
nginx-net:
driver: bridge