-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (44 loc) · 1.08 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
version: '3.8'
services:
server:
image: "docker.io/jollyboss/tcg_my-server"
container_name: "tcg_my_container"
environment:
- "API_HOST=0.0.0.0"
- "API_PORT=8080"
- "API_PROXY_ENABLED=false"
- "CORS_ALLOWED_ORIGINS=http://localhost:3000"
- "CORS_ALLOW_CREDENTIALS=true"
- "CORS_ALLOW_PRIVATE_NETWORK=false"
- "REDIS_HOST=redis"
- "REDIS_PORT=6379"
- "REDIS_NAME=0"
- "REDIS_CACHE_TIME=5m"
- "REDIS_ENABLE=true"
- "RATE_KEY=****" #replace with your API key
- "RATE_ENDPOINT=http://api.exchangeratesapi.io/v1/latest"
build:
context: .
dockerfile: Dockerfile
ports:
- ${API_PORT}:${API_PORT}
redis:
image: 'redis:7.2'
restart: always
ports:
- "6379:6379"
environment:
- ALLOW_EMPTY_PASSWORD=yes
tor-proxy:
container_name: 'tor-proxy'
build: .
image: 'tor-app:latest'
ports:
- '9050:9050'
restart: always
# tor-bar:
# container_name: 'tor-bar'
# image: 'tor-app:latest'
# ports:
# - '9051:9050'
# restart: always