-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
125 lines (113 loc) · 2.31 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
version: '3'
x-python-test: &python-test
working_dir: /app
command: sh etc/container-test.sh
volumes:
- .:/app
- pip-cache:/home/test/.cache/pip
profiles:
- tests
x-postgres-env:
- &pghost
PGHOST=postgres
- &pguser
PGUSER=postgres
x-mariadb-env:
- &mariadbhost
MYSQL_HOST=mariadb
- &mariadbuser
MYSQL_USER=root
- &mariadbpassword
MYSQL_PASSWORD=test
services:
postgres:
image: postgres:alpine
environment:
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- postgres_data:/var/lib/postgresql/data
profiles:
- services
mariadb:
image: mariadb/server
environment:
- MARIADB_USER=test
- MARIADB_PASSWORD=test
- MARIADB_ALLOW_EMPTY_PASSWORD=yes
volumes:
- mariadb_data:/var/lib/mysql
profiles:
- services
python-3.7:
<<: *python-test
image: pluca-test:3.7
build:
context: ./etc/docker
args:
PYTHON_VERSION: '3.7'
environment:
- PGDATABASE=python3_7
- MYSQL_DATABASE=python3_7
- *pghost
- *pguser
- *mariadbhost
python-3.8:
<<: *python-test
image: pluca-test:3.8
build:
context: ./etc/docker
args:
PYTHON_VERSION: '3.8'
environment:
- PGDATABASE=python3_8
- MYSQL_DATABASE=python3_8
- *pghost
- *pguser
- *mariadbhost
python-3.9:
<<: *python-test
image: pluca-test:3.9
build:
context: ./etc/docker
args:
PYTHON_VERSION: '3.9'
environment:
- PGDATABASE=python3_9
- MYSQL_DATABASE=python3_9
- *pghost
- *pguser
- *mariadbhost
python-3.10:
<<: *python-test
image: pluca-test:3.10
build:
context: ./etc/docker
args:
PYTHON_VERSION: '3.10'
environment:
- PGDATABASE=python3_10
- MYSQL_DATABASE=python3_10
- *pghost
- *pguser
- *mariadbhost
- *mariadbuser
- *mariadbpassword
python-3.11:
<<: *python-test
image: pluca-test:3.11
build:
context: ./etc/docker
args:
PYTHON_VERSION: '3.11'
environment:
- PGDATABASE=python3_11
- MYSQL_DATABASE=python3_11
- *pghost
- *pguser
- *mariadbhost
- *mariadbuser
- *mariadbpassword
volumes:
pip-cache:
mariadb_data:
postgres_data: