akkoma/docker-compose.yml

66 lines
1.7 KiB
YAML
Raw Permalink Normal View History

version: "3.7"
services:
db:
2023-12-30 19:55:56 +00:00
image: postgres:14
2023-08-21 21:50:10 +00:00
shm_size: 4gb
restart: unless-stopped
environment: {
# This might seem insecure but is usually not a problem.
# You should leave this at the "akkoma" default.
# The DB is only reachable by containers in the same docker network,
# and is not exposed to the open internet.
#
# If you do change this, remember to update "config.exs".
POSTGRES_DB: akkoma,
POSTGRES_USER: akkoma,
POSTGRES_PASSWORD: akkoma,
}
env_file:
- .env
volumes:
2023-12-30 19:55:56 +00:00
- ./pgdata:/var/lib/postgresql/data:Z
akkoma:
image: akkoma:latest
restart: unless-stopped
env_file:
- .env
2023-12-30 19:55:56 +00:00
environment: {
"AKKOMA_CONFIG_PATH": "/opt/akkoma/config/docker-config.exs"
}
links:
- db
ports: [
# Uncomment/Change port mappings below as needed.
# The left side is your host machine, the right one is the akkoma container.
# You can prefix the left side with an ip.
# Webserver (for reverse-proxies outside of docker)
# If you use a dockerized proxy, you can leave this commented
# and use a container link instead.
"127.0.0.1:4000:4000",
]
volumes:
2023-12-30 19:55:56 +00:00
- ./uploads:/opt/akkoma/uploads:Z
- ./instance:/opt/akkoma/instance:Z
- ./config/docker-config.exs:/opt/akkoma/config/docker-config.exs:Z
# Uncomment the following if you want to use a reverse proxy
#proxy:
# image: caddy:2-alpine
# restart: unless-stopped
# links:
# - akkoma
# ports: [
# "443:443",
# "80:80"
# ]
# volumes:
# - ./docker-resources/Caddyfile:/etc/caddy/Caddyfile
# - ./caddy-data:/data
2022-10-18 15:16:55 +00:00
# - ./caddy-config:/config
2023-12-30 19:55:56 +00:00
volumes:
db-data: