-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
54 lines (48 loc) · 1.16 KB
/
docker-compose.yaml
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
services:
bot:
container_name: bot
restart: always
environment:
- PIP_DEFAULT_TIMEOUT=100
- PIP_DISABLE_PIP_VERSION_CHECK=1
- PIP_NO_CACHE_DIR=1
- PYTHONUNBUFFERED=1
- PYTHONDONTWRITEBYTECODE 1
build:
dockerfile: bot.dockerfile
context: .
target: prod
# depends_on:
# - db
api:
container_name: api
restart: always
ports:
- 8084:${PORT:-8084}
environment:
- PIP_DEFAULT_TIMEOUT=100
- PIP_DISABLE_PIP_VERSION_CHECK=1
- PIP_NO_CACHE_DIR=1
- PYTHONUNBUFFERED=1
- PYTHONDONTWRITEBYTECODE 1
build:
dockerfile: api.dockerfile
context: .
target: prod
# depends_on:
# - db
# db:
# image: postgres
# restart: always
# ports:
# - 5432:5432
# volumes:
# - db-data:/var/lib/postgresql/data
#volumes:
# db-data:
#volumes:
# - type: bind
# source: .
# target: /app
# volume:
# nocopy: true