-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
43 lines (37 loc) · 1.04 KB
/
docker-compose.test.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
# Docker Compose Configuration for Test Environment
version: "3.9"
services:
app: &services-app
image: docker.io/library/python:3
command: ["make", "install-dev", "lint", "test"]
working_dir: /opt/app
environment:
- DATABASE_HOST=${DATABASE_HOST:-db-test}
- DATABASE_NAME=${DATABASE_NAME:-app_test}
- DATABASE_PASSWORD=${DATABASE_PASSWORD:-123}
- DATABASE_PORT=${DATABASE_PORT:-5432}
- DATABASE_USERNAME=${DATABASE_USERNAME:-app}
- PYTHONBREAKPOINT
- PYTHONDONTWRITEBYTECODE=true
- TOXENV
depends_on:
- db-test
volumes:
- type: bind
source: .
target: /opt/app
app-python3.8:
<<: *services-app
image: docker.io/library/python:3.8.6
app-python3.9:
<<: *services-app
image: docker.io/library/python:3.9.15
app-python3.10:
<<: *services-app
image: docker.io/library/python:3.10.9
db-test:
image: docker.io/library/postgres:12.3
environment:
POSTGRES_DB: app_test
POSTGRES_PASSWORD: "123"
POSTGRES_USER: app