This repository was archived by the owner on Feb 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
54 lines (54 loc) · 1.48 KB
/
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.9"
services:
web_dev:
image: yxtay/python-project-template:dev
build:
context: .
dockerfile: Dockerfile
args:
ENVIRONMENT: ${ENVIRONMENT:-dev}
cache_from:
- yxtay/python-project-template:dev
cache_to:
- type=inline
target: dev
volumes:
- .:/home/user/app
ports:
- "8000:8000"
env_file: .env
profiles:
- dev
web_ci:
image: yxtay/python-project-template:ci
build:
context: .
dockerfile: Dockerfile
args:
ENVIRONMENT: ${ENVIRONMENT:-dev}
cache_from:
- yxtay/python-project-template:dev
- yxtay/python-project-template:ci
cache_to:
- type=inline
target: ci
env_file: .env
profiles:
- ci
web:
image: yxtay/python-project-template:${IMAGE_TAG}
build:
context: .
dockerfile: Dockerfile
args:
ENVIRONMENT: ${ENVIRONMENT:-dev}
cache_from:
- yxtay/python-project-template:dev
- yxtay/python-project-template:latest
- yxtay/python-project-template:${IMAGE_TAG}
target: prod
ports:
- "8000:8000"
env_file: .env
profiles:
- prod