-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-docker-compose.yml
More file actions
46 lines (39 loc) · 887 Bytes
/
test-docker-compose.yml
File metadata and controls
46 lines (39 loc) · 887 Bytes
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
version: '3.2'
services:
test_runner:
build: tests
container_name: zverobot-test
volumes:
- ./:/zverobot
command: >
bash -c "pipenv install --dev &&
pipenv run alembic upgrade head
&& pipenv run pytest"
depends_on:
- postgres
ports:
- 8080:8080
networks:
- zverobot-test-network
postgres:
image: postgres:10
container_name: postgres-test
volumes:
- postgres-test-data:/var/lib/postgresql/test-data
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
expose:
- "${DB_PORT}"
ports:
- ${DB_PORT}:${DB_PORT}
command:
-p ${DB_PORT}
networks:
- zverobot-test-network
volumes:
postgres-test-data:
networks:
zverobot-test-network:
external: true