-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-prod.yaml
More file actions
94 lines (89 loc) · 2.12 KB
/
docker-compose-prod.yaml
File metadata and controls
94 lines (89 loc) · 2.12 KB
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
94
name: litespace-prod
services:
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-litespace}
POSTGRES_DB: litespace
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- "127.0.0.1:5432:5432"
networks:
- postgres
restart: unless-stopped
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-dev@litespace.org}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
PGADMIN_CONFIG_SERVER_MODE: "False"
volumes:
- pgadmin:/var/lib/pgadmin
ports:
- "127.0.0.1:5050:80"
networks:
- postgres
restart: unless-stopped
redis:
container_name: redis
image: redis/redis-stack-server:latest
ports:
- "127.0.0.1:6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
volumes:
- redis:/data
networks:
- redis
docmost:
container_name: docmost
image: docmost/docmost:latest
depends_on:
- postgres
- redis
environment:
APP_URL: "https://handbook.litespace.org"
APP_SECRET: ${DOCMOST_APP_SECRET}
DATABASE_URL: ${DOCMOST_DATABASE_URL}
REDIS_URL: "redis://redis:6379"
MAIL_DRIVER: "smtp"
SMTP_HOST: "mail.litespace.org"
SMTP_PORT: 465
SMTP_USERNAME: handbook
SMTP_PASSWORD: ${DOCMOST_EMAIL_PASSOWRD}
SMTP_SECURE: true
MAIL_FROM_ADDRESS: handbook@litespace.org
MAIL_FROM_NAME: LiteSpace Handbook
ports:
- "127.0.0.1:3006:3000"
restart: unless-stopped
volumes:
- docmost:/app/data/storage
networks:
- postgres
- redis
networks:
postgres:
name: postgres
driver: bridge
redis:
name: redis
driver: bridge
volumes:
postgres:
name: litespace_postgres
external: true
pgadmin:
name: litespace_pgadmin
external: true
docmost:
name: litespace_docmost
external: true
redis:
name: litespace_redis
external: true