forked from AdithyanNellickal/api.enime.moe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (51 loc) · 1.31 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
services:
enime:
image: enime/api:1.0
restart: always
environment:
- VIRTUAL_HOST=api.enime.moe
- VIRTUAL_PORT=3000
- WEBSHARE_API_KEY=${WEBSHARE_API_KEY}
- DATABASE_URL=${DATABASE_URL}
- BACKUP_PROXY_ADDRESS=${BACKUP_PROXY_ADDRESS}
- BACKUP_PROXY_PORT_HTTP=${BACKUP_PROXY_PORT_HTTP}
- BACKUP_PROXY_PORT_SOCKS5=${BACKUP_PROXY_PORT_SOCKS5}
- BACKUP_PROXY_USERNAME=${BACKUP_PROXY_USERNAME}
- BACKUP_PROXY_PASSWORD=${BACKUP_PROXY_PASSWORD}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- ADMIN_KEY=${ADMIN_KEY}
- DISCORD_WEBHOOK_URL=${DISCORD_WEBHOOK_URL}
- PROXY_API_KEY=${PROXY_API_KEY}
db:
image: postgres:14.1-alpine
restart: always
ports:
- '5432:5432'
expose:
- '5432'
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=${POSTGRES_ROOT_PASSWORD}
- POSTGRES_USER=${POSTGRES_ROOT_USER}
- POSTGRES_DB=${POSTGRES_DB}
redis:
image: bitnami/redis:latest
ports:
- '6379:6379'
expose:
- '6379'
volumes:
- redis:/data
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
volumes:
redis:
db:
driver: local
networks:
default:
name: nginx-proxy
external: true