-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (67 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
70 lines (67 loc) · 1.49 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
volumes:
common_data:
nexus-bot-config:
nexus-uploads:
services:
api:
build: ./api
container_name: api
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- type: bind
source: ${API_ENV_PATH:-./api/.env}
target: /app/.env
read_only: true
networks:
- backend
- frontend
nexus:
build: ./nexus
container_name: nexus
restart: unless-stopped
ports:
- "3001:3001"
volumes:
- type: bind
source: ${COMMON_HOST_PATH:-./common}
target: /app/src/lib/common
read_only: true
- type: bind
source: ${NEXUS_ENV_PATH:-./nexus/.env}
target: /app/.env
read_only: true
# Persistent storage for uploaded images
- type: volume
source: nexus-uploads
target: /app/uploads
environment:
- UPLOAD_DIR=/app/uploads
networks:
- backend
- frontend
nexus-bot:
build: ./nexus-bot
container_name: nexus-bot
restart: unless-stopped
volumes:
- type: bind
source: ${COMMON_HOST_PATH:-./common}
target: /app/common
read_only: true
- type: bind
source: ${BOT_ENV_PATH:-./nexus-bot/.env}
target: /app/.env
read_only: true
- type: bind
source: ${BOT_CONFIG_PATH:-./nexus-bot/config.json}
target: /app/config.json
read_only: false
networks:
- backend
networks:
backend:
external: true
frontend:
external: true