-
Notifications
You must be signed in to change notification settings - Fork 4
/
compose.yml
65 lines (62 loc) · 1.55 KB
/
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
60
61
62
63
64
65
# THIS DOCKER COMPOSE FILE IS FOR DEVELOPMENT PURPOSE ONLY
x-logging-config: &logger-config
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
labels: "service={{SERVICE_NAME}}"
services:
byteshare-middleware:
build:
context: ./middleware
image: byteshare/middleware:${BYTESHARE_VERSION}
container_name: byteshare-middleware
<<: *logger-config
restart: unless-stopped
environment:
- ENVIRONMENT
- WEB_BASE_URL
- RESEND_API_KEY
- R2_ACCOUNT_ID
- R2_ACCESS_KEY
- R2_SECRET_KEY
- APPWRITE_URL
- APPWRITE_PROJECT_ID
- APPWRITE_API_KEY
- AWS_APP_REGION
- AWS_APP_ACCESS_KEY
- AWS_APP_SECRET_ACCESS_KEY
- RABBITMQ_QUEUE
- RABBITMQ_URL
- AWS_API_ACCESS_ACCESS_KEY
- AWS_API_ACCESS_SECRET_ACCESS_KEY
- AWS_API_ACCESS_REGION
- AWS_API_ACCESS_ROLE_ARN
- AWS_API_KEY=${NEXT_PUBLIC_API_KEY}
ports:
- 8000:8000
networks:
- byteshare-network
byteshare-ui:
build:
context: ./ui
args:
- NEXT_PUBLIC_API_BASE_URL
- NEXT_PUBLIC_APP_URL=${WEB_BASE_URL}
- NEXT_PUBLIC_APPWRITE_URL=${APPWRITE_URL}
- NEXT_PUBLIC_APPWRITE_PROJECT_ID
- NEXT_PUBLIC_API_KEY
image: byteshare/ui:${BYTESHARE_VERSION}
container_name: byteshare-ui
<<: *logger-config
restart: unless-stopped
depends_on:
- byteshare-middleware
ports:
- 3000:3000
networks:
- byteshare-network
networks:
byteshare-network:
driver: bridge