-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
93 lines (89 loc) · 2.88 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
services:
skychat_traefik:
image: traefik:v2.9
container_name: skychat_traefik
command:
- "--entrypoints.web.address=:${PUBLIC_PORT}"
- "--api.insecure=true"
- "--certificatesresolvers.letsencrypt.acme.tlschallenge=true"
- "--certificatesresolvers.letsencrypt.acme.email=${ADMIN_EMAIL}"
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
- "--providers.file.directory=/configuration/"
- "--providers.file.watch=true"
- "--accesslog=true"
- "--accesslog.filePath=/logs/access.log"
ports:
- ${BIND_INTERFACE}:${PUBLIC_PORT}:${PUBLIC_PORT}
volumes:
- skychat_letsencrypt:/letsencrypt:rw
- ./app/traefik/dynamic.yml:/configuration/dynamic.yml:ro
env_file:
- .env
skychat_app:
container_name: skychat_app
cap_drop:
- ALL
build:
context: .
args:
DOCKER_USER: "${DOCKER_USER}"
DOCKER_UID: "${DOCKER_UID}"
DOCKER_GID: "${DOCKER_GID}"
DOCKER_TZ: "${DOCKER_TZ}"
environment:
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_DB: "${POSTGRES_DB}"
PUBLIC_URL: "${PUBLIC_URL}"
USERS_PASSWORD_SALT: "${USERS_PASSWORD_SALT}"
USERS_TOKEN_SALT: "${USERS_TOKEN_SALT}"
YOUTUBE_API_KEY: "${YOUTUBE_API_KEY}"
OP_LIST: "${OP_LIST}"
OP_PASSCODE: "${OP_PASSCODE}"
TRUSTED_IP_HEADER: "${TRUSTED_IP_HEADER}"
ENABLED_PLUGINS: "${ENABLED_PLUGINS}"
MAILGUN_API_KEY: "${MAILGUN_API_KEY}"
MAILGUN_DOMAIN: "${MAILGUN_DOMAIN}"
MAILGUN_FROM: "${MAILGUN_FROM}"
volumes:
- ./config:/workdir/config
- ./backups:/workdir/backups
- ./storage:/workdir/storage
- ./gallery:/workdir/gallery
- ./uploads:/workdir/uploads
- ./app:/workdir/app:ro
depends_on:
- skychat_db
skychat_db:
container_name: skychat_db
restart: always
build:
context: ./app/database
args:
DOCKER_USER: "${DOCKER_USER}"
DOCKER_UID: "${DOCKER_UID}"
DOCKER_GID: "${DOCKER_GID}"
environment:
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_DB: "${POSTGRES_DB}"
volumes:
- ./app/database/data:/var/lib/postgresql/data:rw
skychat_admin_filebrowser:
container_name: skychat_admin_filebrowser
build:
context: ./app/filebrowser
args:
DOCKER_USER: "${DOCKER_USER}"
DOCKER_UID: "${DOCKER_UID}"
DOCKER_GID: "${DOCKER_GID}"
DOCKER_TZ: "${DOCKER_TZ}"
PUBLIC_URL: "${PUBLIC_URL}"
volumes:
- ./backups:/mnt/skychat/backups:ro
- ./gallery:/mnt/skychat/gallery:rw
- ./uploads/all:/mnt/skychat/uploads/all:rw
- ./uploads/avatars:/mnt/skychat/uploads/avatars:ro
- ./uploads/stickers:/mnt/skychat/uploads/stickers:ro
volumes:
skychat_letsencrypt: