-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-locally.yml
55 lines (51 loc) · 1.08 KB
/
docker-compose-locally.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
version: "3.9"
services:
redis:
image: "redis:latest"
command: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- "6379:6379"
postgres:
image: postgres
volumes:
- ./backend/postgres-data:/var/lib/postgresql/data
- ./backend/app/scripts:/docker-entrypoint-initdb.d
environment:
POSTGRES_PASSWORD: pass
ports:
- "5432:5432"
bot:
build: backend/bot
env_file:
- .env
depends_on:
- redis
environment:
- REDIS_HOST=redis
- REDIS_PORT=${REDIS_PORT}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- TELEGRAM_USER_PASSWORD=1uu
- TELEGRAM_ADMIN_PASSWORD=1a
- BOT_TOKEN=${BOT_TOKEN}
app:
build: backend/app
ports:
- "5000:5000"
depends_on:
- redis
env_file:
- .env
environment:
- REDIS_HOST=redis
- REDIS_PORT=${REDIS_PORT}
- REDIS_PASSWORD=${REDIS_PASSWORD}
nginx:
build: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/data/nginx/locally:/etc/nginx/conf.d
depends_on:
- app
- bot