-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose-pyver.yml
More file actions
54 lines (50 loc) · 1.24 KB
/
Copy pathdocker-compose-pyver.yml
File metadata and controls
54 lines (50 loc) · 1.24 KB
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
# This docker-compose-pyver.yml extends the base docker-compose.yml
# to run three web services for different PYVER (3.11 and 3.13, 3.12 is the default)
# but they all use the same redis and postgres service.
# Run `docker compose -f docker-compose-workers.yml up` to start it up.
include:
- docker-compose.yml
services:
migrations-311:
extends:
service: migrations
build:
args:
PYVER: "3.11"
migrations-313:
extends:
service: migrations
build:
args:
PYVER: "3.13"
web-311:
extends:
service: web
build:
args:
PYVER: "3.11"
ports: !override
- "5001:5000"
depends_on: !override
# !override is necessary to remove the original migrations from depends_on
redis:
condition: service_healthy
postgres:
condition: service_healthy
migrations-311:
condition: service_completed_successfully
web-313:
extends:
service: web
build:
args:
PYVER: "3.13"
ports: !override
- "5003:5000"
depends_on: !override
redis:
condition: service_healthy
postgres:
condition: service_healthy
migrations-313:
condition: service_completed_successfully