31 lines
565 B
YAML
31 lines
565 B
YAML
version: "2.1"
|
|
services:
|
|
mastodon:
|
|
image: lscr.io/linuxserver/mastodon:latest
|
|
container_name: mastodon
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- /config:/config
|
|
ports:
|
|
- 80:80
|
|
restart: unless-stopped
|
|
|
|
redis:
|
|
container_name: redis
|
|
image: redis:latest
|
|
restart: always
|
|
env_file:
|
|
- .env
|
|
|
|
database:
|
|
container_name: database
|
|
image: postgres:14
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
PG_DATA: /var/lib/postgresql/data
|
|
volumes:
|
|
- /psql/data:/var/lib/postgresql/data
|
|
restart: always
|