Skip to content

Commit

Permalink
Remove TZ env and localtime volume
Browse files Browse the repository at this point in the history
  • Loading branch information
Soubinan committed Nov 18, 2023
1 parent 0c36ee2 commit 550e672
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ RUN ln -sf /proc/1/fd/1 /var/log/xo-server.log && \
ln -sf /proc/1/fd/1 /var/log/syslog.log

WORKDIR /app/packages/xo-server
VOLUME [ "/etc/localtime", "/etc/xo-server", "/var/lib/xo-server", "/var/lib/xoa-backup" ]
VOLUME [ "/etc/xo-server", "/var/lib/xo-server", "/var/lib/xoa-backup" ]

EXPOSE 80

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Is a containerized XEN Orchestra version inspired by [XEN-Orchestra-Docker](http

### Available volumes

* /etc/localtime: Where to sync the container localtime (aligned with the host by default)
* /etc/xo-server: Where the xo-server config lives (contains default configs, needs at least the redis IP:Port info)
* /var/lib/xo-server: Where the xo-server data lives
* /var/lib/xoa-backup: Where the xo-backup data lives
Expand All @@ -22,13 +21,14 @@ docker pull ghcr.io/soubinan/xoa-container:latest
### Execute

```bash
docker run --rm -p 8080:80 -e TZ=UTC -v <path/to/your/config>:/etc/xo-server -v <path/to/your/data>:/var/lib/xo-server -v <path/to/your/data>:/var/lib/xo-backup ghcr.io/soubinan/xoa-container:latest
docker run --rm -p 8080:80 -e -v <path/to/xo/config>:/etc/xo-server -v <path/to/xo/data>:/var/lib/xo-server -v <path/to/xo/backup>:/var/lib/xo-backup ghcr.io/soubinan/xoa-container:latest
```

or

```bash
docker network create frontnet redisnet
docker network create frontnet
docker network create redisnet
docker-compose up
```

Expand Down
6 changes: 2 additions & 4 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ services:
- 8080:80
depends_on:
- redis
environment:
- TZ=UTC
cap_add:
- SYS_ADMIN
- DAC_READ_SEARCH
security_opt:
- apparmor:unconfined
volumes:
- ./config.toml:/etc/xo-server/config.toml:Z
- ./example.config.toml:/etc/xo-server/config.toml:Z
- xo-data:/var/lib/xo-server
- xo-backup:/var/lib/xoa-backup
logging: &default_logging
Expand All @@ -29,7 +27,7 @@ services:

redis:
restart: unless-stopped
image: docker.io/library/redis
image: docker.io/library/redis:latest
command: redis-server --appendonly yes
expose:
- 6379
Expand Down
File renamed without changes.

0 comments on commit 550e672

Please sign in to comment.