diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-13 00:32:55 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-13 00:32:59 +0500 |
| commit | e231346fdd87520b0cd154aaab8a366f49a9a953 (patch) | |
| tree | b541835914663ddc14a7ffcbd2a285046c362a4a /docker | |
| parent | workflows/ci: prettify YAML (diff) | |
| download | cgitize-e231346fdd87520b0cd154aaab8a366f49a9a953.tar.gz cgitize-e231346fdd87520b0cd154aaab8a366f49a9a953.zip | |
reshuffle Docker-related files
* The root docker-compose.yml was not used anywhere but the tests, so its
contents was moved there.
* Some more refactoring and shortening of paths in t/i/docker.
* Removed .dockerignore files - I don't think they're needed, since I
always use explicit COPY instructions with paths, etc., but I may as
well be quite wrong on this one.
* Removed examples/docker/ - don't think this one was used at all?
Diffstat (limited to '')
| -rw-r--r-- | docker-compose.yml | 25 | ||||
| -rw-r--r-- | docker/README.md | 7 |
2 files changed, 5 insertions, 27 deletions
diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index bc71c04..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,25 +0,0 @@ -services: - cgitize: - build: - context: . - dockerfile: docker/Dockerfile - environment: - # Every 3 hours: - SCHEDULE: '0 */3 * * *' - image: egortensin/cgitize:latest - restart: unless-stopped - volumes: - - ./examples/docker:/etc/cgitize:ro - - repositories:/mnt/cgitize - frontend: - build: - context: ./docker/frontend - image: egortensin/cgitize-frontend:latest - ports: - - '127.0.0.1:80:80' - restart: unless-stopped - volumes: - - repositories:/mnt/cgitize:ro - -volumes: - repositories: diff --git a/docker/README.md b/docker/README.md index a0d51a1..32aad34 100644 --- a/docker/README.md +++ b/docker/README.md @@ -53,14 +53,17 @@ services: restart: unless-stopped volumes: - ./example.toml:/etc/cgitize/cgitize.toml:ro - - /srv/volumes/cgitize:/mnt/cgitize + - repositories:/mnt/cgitize frontend: image: egortensin/cgitize-frontend:8 ports: - '127.0.0.1:80:80' restart: unless-stopped volumes: - - /srv/volumes/cgitize:/mnt/cgitize:ro + - repositories:/mnt/cgitize:ro + +volumes: + repositories: ``` In this configuration, cgitize pulls repositories defined in example.toml every |
