-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
109 lines (101 loc) · 3.24 KB
/
docker-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
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
104
105
106
107
108
109
version: "3.7"
services:
mongo:
image: mongo:4.4-focal@sha256:0032f4a04bf96ca9c69665a553198148bdd8ec8caf556eb6281a464d3cb32470
uwsgi:
image: jnorwood/stupidchess-uwsgi:2023.10.0
entrypoint:
- uwsgi
- --ini
- /etc/stupidchess/uwsgi.ini:local
environment:
JCONFIGURE_ACTIVE_PROFILES: LCL
JCONFIGURE_CONFIG_DIRECTORIES: /etc/stupidchess/config
volumes:
- type: volume
source: stupidchess-sockets
target: /run/stupidchess
nginx:
image: jnorwood/stupidchess-nginx
build:
context: .
dockerfile: docker/Dockerfile-nginx
volumes:
- type: bind
source: ./nginx.conf
target: /etc/stupidchess/nginx.conf
read_only: true
- type: volume
source: frontend-public-volume
target: /etc/stupidchess/dist
read_only: true
- type: volume
source: stupidchess-sockets
target: /run/stupidchess
- type: volume
source: stupidchess-nginx-runtime
target: /run/stupidchess-nginx
- type: volume
source: stupidchess-journal-logs
target: /run/systemd/journal
- type: volume
source: stupidchess-nginx-exporter-logs
target: /run/stupidchess-nginx-exporter
journald:
image: jnorwood/stupidchess-syslog
build:
context: docker
dockerfile: Dockerfile-syslog
environment:
SOCKET_PATH: /run/systemd/journal/dev-log
volumes:
- type: volume
source: stupidchess-journal-logs
target: /run/systemd/journal
nginx-log-exporter:
image: jnorwood/stupidchess-syslog
build:
context: docker
dockerfile: Dockerfile-syslog
environment:
SOCKET_PATH: /run/stupidchess-nginx-exporter/syslog.sock
volumes:
- type: volume
source: stupidchess-nginx-exporter-logs
target: /run/stupidchess-nginx-exporter
socat:
image: jnorwood/stupidchess-socat
build:
context: docker
dockerfile: Dockerfile-socat
ports:
- published: 23180
target: 23080
volumes:
- type: volume
source: stupidchess-nginx-runtime
target: /run/stupidchess-nginx
webpack_builder:
image: jnorwood/stupidchess-webpack_builder
build:
context: .
dockerfile: docker/Dockerfile-webpack_builder
entrypoint:
- node_modules/webpack/bin/webpack.js
- --watch
- --devtool
- source-map
volumes:
- type: bind
source: ./src
target: /etc/stupidchess/src
read_only: true
- type: volume
source: frontend-public-volume
target: /etc/stupidchess/dist
volumes:
frontend-public-volume:
stupidchess-journal-logs:
stupidchess-nginx-exporter-logs:
stupidchess-nginx-runtime:
stupidchess-sockets: