-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (54 loc) · 1.51 KB
/
docker-compose.yml
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
version: "3.9"
services:
frontend:
image: node:18
command: npm run dev
user: ${USER_ID:-1000}:${GROUP_ID:-1000}
working_dir: /srv/app
volumes:
- ./frontend:/srv/app
ports:
- 127.0.0.1:${FRONTEND_PORT:-3000}:5173
networks:
- signed-frontend-uploads
environment:
VITE_UPLOAD_ENDPOINT: ${UPLOAD_ENDPOINT:-http://localhost:4000/uploads}
VITE_MINIO_CONSOLE_URL: ${MINIO_CONSOLE_URL:-http://localhost:9000}
restart: unless-stopped
backend:
image: node:18
command: npm run dev
user: ${USER_ID:-1000}:${GROUP_ID:-1000}
working_dir: /srv/app
volumes:
- ./backend:/srv/app
ports:
- 127.0.0.1:${BACKEND_PORT:-4000}:3000
networks:
- signed-frontend-uploads
environment:
S3_BUCKET: ${S3_BUCKET:-uploads}
S3_ID: ${S3_ID:-admin}
S3_SECRET: ${S3_SECRET:-password}
S3_REGION: "us-east-1"
S3_ENDPOINT: ${S3_ENDPOINT:-http://localhost:9000}
restart: unless-stopped
object-storage:
image: minio/minio:latest
command: minio server /data/minio --console-address :9090
volumes:
- minio:/data/minio
ports:
- 127.0.0.1:${MINIO_PORT:-9000}:9000
- 127.0.0.1:${MINIO_CONSOLE_PORT:-9090}:9090
networks:
- signed-frontend-uploads
environment:
MINIO_ROOT_USER: ${S3_ID:-admin}
MINIO_ROOT_PASSWORD: ${S3_SECRET:-password}
restart: unless-stopped
volumes:
minio:
networks:
signed-frontend-uploads:
name: signed-frontend-uploads-docker-network