-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
54 lines (51 loc) · 1013 Bytes
/
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
version: "3.7"
services:
db:
image: postgres:10.1-alpine
web:
build:
context: .
dockerfile: DockerfileTest
ports:
- "5005:5005"
env_file: .env
volumes:
- .:/app
depends_on:
- db
command: ["./wait-for-it.sh", "${DB_HOST}:${DB_PORT}", "-t", "120", "--", "./base_site.sh"]
bot:
build:
context: .
dockerfile: DockerfileTest
env_file: .env
volumes:
- .:/app
depends_on:
- db
- web
command:
[
"./wait-for-it.sh",
"web:5005",
"-t",
"120",
"--",
"./wait-for-it.sh",
"${DB_HOST}:${DB_PORT}",
"-t",
"120",
"--",
"python",
"manage.py",
"startelegrambot2",
]
integration-tests:
image: python:3.7.4-slim
env_file: .env
volumes:
- .:/app
depends_on:
- db
command: >
sh -c "pip install tox && cd app && tox && find . -name '*.pyc' -delete && rm -rf .tox"