-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1.06 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.4'
volumes:
postgresql-db:
driver: local
certs:
external: true
services:
db:
restart: always
image: postgres:15.1
container_name: pleroma-db
environment:
POSTGRES_USER: pleroma
POSTGRES_PASSWORD: ${PLEROMA_DB_PASSWORD}
POSTGRES_DB: pleroma
volumes:
- ${PLEROMA_DB_DIR}:/var/lib/postgresql/data
- ./postgres:/docker-entrypoint-initdb.d
- ./pgdunp:/pgdunp
ports:
- "5432:5432"
networks:
- back-pleroma
web:
build: docker/otp/.
image: pleroma
#container_name: pleroma_web
restart: always
environment:
MIX_ENV: prod
ports:
- '4000:4000'
volumes:
- ./data/pleroma/content/uploads:/var/lib/pleroma/uploads
- ./pleroma-custom/static:/var/lib/pleroma/static
- ./data/pleroma/config:/etc/pleroma:ro
depends_on:
- db
networks:
- caddy
- back-pleroma
labels:
caddy: ${PLEROMA_HOSTNAME}
caddy.reverse_proxy: "web:4000"
networks:
caddy:
external: true
back-pleroma:
external: true