-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
58 lines (54 loc) · 1.42 KB
/
docker-compose.yaml
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
services:
db:
image: postgres
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-U", "enpitsu", "-d", "enpitsu"]
interval: 3s
retries: 10
start_period: 30s
environment:
POSTGRES_DB: enpitsu
POSTGRES_USER: enpitsu
POSTGRES_PASSWORD: enpitsu
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- db:/var/lib/postgresql/data
ports:
- 5432:5432
cache:
image: redis:6.2-alpine
restart: always
command: redis-server --save 20 1 --loglevel warning --requirepass enpitsu
volumes:
- cache:/data
expose:
- 6379
web:
container_name: enpitsu_admin
image: rmecha/enpitsu:main
restart: always
environment:
DATABASE_URL: postgresql://enpitsu:enpitsu@db:5432/enpitsu
REDIS_URL: redis://:enpitsu@cache:6379/4
AUTH_URL: https://${ENPITSU_VIRTUAL_HOST}
AUTH_SECRET: ${ENPITSU_AUTH_SECRET}
AUTH_GOOGLE_ID: ${ENPITSU_AUTH_GOOGLE_ID}
AUTH_GOOGLE_SECRET: ${ENPITSU_AUTH_GOOGLE_SECRET}
ports:
- 3000:3000
# chibisafe:
# image: chibisafe/chibisafe:latest
# restart: always
# volumes:
# - chibisafe_db:/home/node/chibisafe/database:rw
# - chibisafe_uploads:/home/node/chibisafe/uploads:rw
# - chibisafe_logs:/home/node/chibisafe/logs:rw
# expose:
# - 8000
volumes:
db:
cache:
# chibisafe_db:
# chibisafe_uploads:
# chibisafe_logs: