2022-10-16 19:25:54 +00:00
|
|
|
services:
|
|
|
|
db:
|
2024-05-29 04:31:34 +00:00
|
|
|
image: postgres:16-alpine
|
2023-08-21 21:50:10 +00:00
|
|
|
shm_size: 4gb
|
2022-10-16 19:25:54 +00:00
|
|
|
restart: unless-stopped
|
2024-06-04 09:16:58 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2022-10-16 19:25:54 +00:00
|
|
|
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,
|
|
|
|
}
|
2024-06-04 09:16:58 +00:00
|
|
|
user: ${DOCKER_USER}
|
2022-10-16 19:25:54 +00:00
|
|
|
volumes:
|
2024-06-01 09:52:19 +00:00
|
|
|
- ./pgdata:/var/lib/postgresql/data:z
|
2024-06-04 09:21:13 +00:00
|
|
|
- ./config/setup_db.psql:/docker-entrypoint-initdb.d/setup_db.sql
|
2024-06-01 09:52:19 +00:00
|
|
|
|
2022-10-16 19:25:54 +00:00
|
|
|
akkoma:
|
2024-05-29 05:13:46 +00:00
|
|
|
image: akkoma/akkoma:next
|
2022-10-16 19:25:54 +00:00
|
|
|
restart: unless-stopped
|
2024-06-04 09:16:58 +00:00
|
|
|
user: ${DOCKER_USER}
|
2022-10-16 19:25:54 +00:00
|
|
|
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:
|
2024-06-04 09:16:58 +00:00
|
|
|
- ./config:/opt/akkoma/config
|
|
|
|
- ./uploads:/opt/akkoma/uploads
|
|
|
|
- ./instance:/opt/akkoma/instance
|
2022-10-16 19:25:54 +00:00
|
|
|
|
2023-08-07 17:08:54 +00:00
|
|
|
# Copy this into docker-compose.override.yml and uncomment there if you want to use a reverse proxy
|
2022-10-16 19:25:54 +00:00
|
|
|
#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
|