Last active
April 17, 2020 09:00
-
-
Save enko/ed90d4c2a3ea025bbf658db53a961537 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: '3' | |
services: | |
app: | |
# Comment to use dockerhub image | |
image: 0xaffe/pixelfed:latest | |
restart: unless-stopped | |
ports: | |
- "127.0.0.1:8091:80" | |
depends_on: | |
- db | |
- redis | |
env_file: | |
- /srv/services/pics.tim.schumacher.im/env | |
volumes: | |
- "/srv/services/pics.tim.schumacher.im/data/storage:/home/pixelfed/pixelfed/storage" | |
- "/srv/services/pics.tim.schumacher.im/data/bootstrap:/home/pixelfed/bootstrap" | |
- "/srv/services/pics.tim.schumacher.im/env:/home/pixelfed/pixelfed/.env" | |
- "/sys/fs/cgroup:/sys/fs/cgroup:ro" | |
sysctls: | |
- net.ipv4.ip_unprivileged_port_start=0 | |
tmpfs: | |
- /run:rw | |
- /run/lock:rw | |
- /tmp:rw | |
db: | |
image: postgres:12 | |
restart: unless-stopped | |
environment: | |
- POSTGRES_DB=pixelfed | |
- POSTGRES_USER=pixelfed | |
- POSTGRES_PASSWORD=foobar | |
- "PGDATA=/usr/local/var/lib/postgresql" | |
volumes: | |
- "/srv/services/pics.tim.schumacher.im/data/postgres:/usr/local/var/lib/postgresql" | |
redis: | |
image: redis:5-alpine | |
restart: unless-stopped | |
volumes: | |
- "/srv/services/pics.tim.schumacher.im/data/redis:/data" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment