# Towards a v1 version of discourse docker image

**URL:** <https://meta.discourse.org/t/towards-a-v1-version-of-discourse-docker-image/17138>\
**Category:** Feature\
**Tags:** rfc, spec\
**Created:** [Julho 3, 2014, 12:45am UTC](https://meta.discourse.org/t/towards-a-v1-version-of-discourse-docker-image/17138 "2014-07-03T00:45:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [Julho 30, 2014, 8:20pm UTC](https://meta.discourse.org/t/towards-a-v1-version-of-discourse-docker-image/17138/3 "2014-07-30T20:20:04Z")

</div>

> [@sam](#):
>
> Sane/comprehensive logging strategy

```
volumes:
  - volume:
      host: /var/docker/shared/app/rails-log
      guest: /shared/log/rails
  - volume:
      host: /var/docker/shared/app/var-log
      guest: /var/log
  - volume:
      host: /var/docker/shared/app/uploads
      guest: /shared/uploads
  - volume:
      host: /var/docker/shared/app/backups
      guest: /shared/backups

```

This lets us pull all of the state right out of the container and leave it on the host filesystem. Log rotation can then also be done from the host or the guest as we decide. The only slightly weird thing is the `/shared/log/rails` mount - it’s there due to the symlinks in the app dir:

```
- ln -s /shared/log/rails $home/log
- ln -s /shared/uploads $home/public/uploads
- ln -s /shared/backups $home/public/backups

```

but I’d rather have it slightly weird there than worry about breaking any existing installs.

So… _how_ do we tell unicorn to rotate logfiles?

---

_[View the full topic](https://meta.discourse.org/t/towards-a-v1-version-of-discourse-docker-image/17138)._
