-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
69 lines (64 loc) · 1.67 KB
/
compose.yaml
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
version: '3.8'
volumes:
media:
services:
admin:
hostname: admin
image: docker.io/filegator/filegator:latest
restart: unless-stopped
user: root
volumes:
- media:/var/www/filegator/repository
- /var/www/filegator/private
- ./filegator/configuration.php:/var/www/filegator/configuration.php
- ./filegator/filegator-entrypoint.sh:/var/www/filegator/entrypoint.sh
cmd: /var/www/filegator/entrypoint.sh
backend:
hostname: backend
restart: unless-stopped
ports:
- 9229:9229 # For debugging
volumes:
# Mount as read only for security
- media:/srv/media:ro
# Mount source code to restart without rebuilding image
# (TODO only for development)
#- ./backend:/usr/src/app
#- /usr/src/app/node_modules
build:
context: ./backend
environment:
- NODE_ENV=$NODE_ENV
- DEBUG=$BACKEND_DEBUG
command: [ npm, run, $BACKEND_START_SCRIPT ]
frontend:
depends_on:
- backend
hostname: frontend
restart: unless-stopped
# Mount source code to restart without rebuilding image
# (TODO only for development)
#- ./frontend:/usr/src/app
build:
context: ./frontend
reverse-proxy:
depends_on:
- backend
- frontend
- admin
# - swagger-ui
hostname: reverse-proxy
restart: unless-stopped
ports:
- 8005:80
build:
context: ./reverse-proxy
# Interactive API documentation
# (TODO only for development)
# swagger-ui:
# image: swaggerapi/swagger-ui
# hostname: swagger-ui
# volumes:
# - ./docs:/usr/share/nginx/html/docs
# environment:
# API_URL: docs/openapi.yaml