20 lines
638 B
YAML
20 lines
638 B
YAML
services:
|
|
# Woordle
|
|
woordle:
|
|
container_name: ${WOORDLE_CONTAINER_NAME:-Woordle}
|
|
image: httpd:${WOORDLE_TAG:-latest}
|
|
command: >
|
|
sh -c "apt-get update && \
|
|
apt-get install -y curl unzip && \
|
|
curl -L -o woordle.zip https://github.com/pingiun/woordle/archive/refs/heads/main.zip && \
|
|
unzip woordle.zip && \
|
|
mv -f woordle-main/app/* /usr/local/apache2/htdocs/ && \
|
|
rm woordle.zip && \
|
|
rm -rf woordle-main/ && \
|
|
httpd-foreground"
|
|
restart: ${RESTART:-unless-stopped}
|
|
healthcheck:
|
|
test: curl -f http://localhost:80/ || exit 1
|
|
ports:
|
|
- ${WOORDLE_PORT:-80}:80
|