-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 813 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 813 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
version: "3.8"
services:
nginx:
build:
dockerfile: Dockerfile
context: .
target: nginx
args:
- NODE_VERSION=23.7.0
- NGINX_VERSION=1.23.3
- GITHUB_REF_NAME=${GITHUB_REF_NAME:-main}
- GITHUB_SHA=${GITHUB_SHA:-}
ports:
- "80:80"
- "443:443"
server:
build:
target: server
dockerfile: Dockerfile
context: .
ports:
- "3000:3000"
dev:
build:
dockerfile: Dockerfile
context: .
target: dev
command: ["pnpm", "dev", "--host"]
working_dir: /opt/harrybrwn.github.io
volumes:
- .:/opt/harrybrwn.github.io
- ${SSH_AUTH_SOCK}:/var/run/ssh-mount.sock
environment:
- SSH_AUTH_SOCK=/var/run/ssh-mount.sock
user: 1000:1000
ports:
- "3000:3000"