-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
103 lines (96 loc) · 2.91 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '2.1'
services:
reverse_proxy:
container_name: buck_reverse_proxy
image: nginx
ports:
- "80:80"
- "443:443"
depends_on:
server:
condition: service_healthy
volumes:
- certificates:/etc/nginx/certs/
- manager-certificates:/etc/nginx/certs/manager/
- cert-auth:/etc/nginx/certs/ca/
- ./volumes/reverse_proxy/config/server.conf:/etc/nginx/conf.d/server.conf
- ./volumes/reverse_proxy/certs:/etc/nginx/certs/buckutt/
sql:
container_name: buck_sql
image: postgres:alpine
expose:
- "5432"
ports:
- "5432:5432"
environment:
- POSTGRES_DB=buckless
- POSTGRES_USER=buckless
- POSTGRES_PASSWORD=buckless
volumes:
- ./volumes/database/sql:/var/lib/postgresql/data
adminer:
image: adminer
restart: always
expose:
- "8080"
ports:
- "8080:8080"
server:
container_name: buck_server
image: buckless/server
expose:
- "3000"
environment:
NODE_ENV: production
SERVER_PROTOCOL: http
volumes:
- ./volumes/server/config:/usr/src/buckless-server/config/profiles
- ./volumes/server/admin-certificate:/usr/src/buckless-server/ssl/certificates/admin
- ./volumes/server/log:/usr/src/buckless-server/log
- cert-auth:/usr/src/buckless-server/ssl/certificates/ca
- certificates:/usr/src/buckless-server/ssl/certificates/server
- manager-certificates:/usr/src/buckless-server/ssl/certificates/manager
healthcheck:
test: "ls /usr/src/buckless-server/ready.lock"
timeout: 5s
interval: 5s
retries: 10
admin:
container_name: buck_admin
image: buckless/admin
build: ./images/admin
expose:
- "8082"
environment:
NODE_ENV: production
manager:
container_name: buck_manager
image: buckless/manager
build: ./images/manager
expose:
- "8083"
depends_on:
server:
condition: service_healthy
environment:
NODE_ENV: production
API_HOST: reverse_proxy
API_PORT: 443
volumes:
- ./volumes/manager/icons:/usr/src/buckless-manager/public/images
images:
container_name: buck_images
image: buckless/image-server
expose:
- "3400"
volumes:
- ./volumes/image-server/images:/usr/src/buckless-image-server/images
environment:
NODE_ENV: production
volumes:
certificates:
driver: local
manager-certificates:
driver: local
cert-auth:
driver: local