This repository has been archived by the owner on May 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
90 lines (85 loc) · 1.77 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
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
services:
db:
image: postgres:9.6
ports:
- "5432:5432"
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: "postgres"
volumes:
- "./data/postgres:/var/lib/postgresql/data"
restart: unless-stopped
cache:
image: redis:alpine
ports:
- "6379:6379"
environment:
REDIS_PASSWORD: "redis"
REDIS_DB: "0"
volumes:
- "./data/redis:/data"
restart: unless-stopped
api:
build:
context: .
dockerfile: docker/api/Dockerfile
ports:
- "8080:3333"
depends_on:
- db
environment:
DB_HOST: "db"
DB_PORT: "5432"
DB_USER: "postgres"
DB_PASSWORD: "postgres"
DB_NAME: "postgres"
UPLOAD_DIR: "/uploads"
SMS_API_KEY: ""
DATABASE_URL: "postgres://postgres:postgres@db:5432/postgres"
env_file:
- apps/api/.env
volumes:
- "./data/uploads:/uploads"
restart: unless-stopped
client:
build:
context: .
dockerfile: docker/client/Dockerfile
args:
- SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN
ports:
- "3000:3000"
# depends_on:
# - api
# links:
# - api
restart: unless-stopped
dashboard:
build:
context: .
dockerfile: docker/dashboard/Dockerfile
args:
- SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN
ports:
- "3001:3000"
depends_on:
- api
links:
- api
restart: unless-stopped
bot:
build:
context: .
dockerfile: docker/bot/Dockerfile
environment:
REDIS_URL: "redis://redis:6379@redis:6379/0"
APIFY_TOKEN: ""
TELEGRAM_TOKEN: ""
depends_on:
- api
- cache
links:
- api
- cache
restart: unless-stopped