forked from ryo-ma/github-profile-trophy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) 路 870 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (37 loc) 路 870 Bytes
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
services:
app:
container_name: trophy-app
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8080"
environment:
- PORT=8080
- GITHUB_TOKEN1=${GITHUB_TOKEN1}
- GITHUB_TOKEN2=${GITHUB_TOKEN2}
- GITHUB_API=https://api.github.com/graphql
- ENABLE_REDIS=${ENABLE_REDIS:-true}
- REDIS_PORT=6379
- REDIS_HOST=redis
- REDIS_USERNAME=${REDIS_USERNAME}
- REDIS_PASSWORD=${REDIS_PASSWORD}
depends_on:
- redis
restart: unless-stopped
networks:
- trophy-network
redis:
container_name: trophy-redis
image: redis:alpine
command: redis-server --requirepass ${REDIS_PASSWORD:-}
volumes:
- redis-data:/data
restart: unless-stopped
networks:
- trophy-network
volumes:
redis-data:
networks:
trophy-network:
driver: bridge