-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (39 loc) · 908 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (39 loc) · 908 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
services:
gcloud:
image: google/cloud-sdk:latest
platform: linux/amd64
volumes:
- 'gcp:/root/.config/'
entrypoint: gcloud
dev: &dev
image: gfw/python-app-template-dev
platform: linux/amd64
build:
target: dev
volumes:
- '.:/opt/project'
- 'gcp:/root/.config/'
entrypoint: /bin/bash
dev_no_gcp:
image: gfw/python-app-template-dev
# Dev container without GCP credentials.
<<: *dev
volumes:
- ".:/opt/project"
prod:
image: gfw/python-app-template-prod
build:
target: prod
platform: linux/amd64
entrypoint: /bin/bash
test:
image: gfw/python-app-template-test
platform: linux/amd64
# Runs tests using the production Docker image.
# Intended to be executed in the GitHub CI environment.
build:
target: test
entrypoint: 'pytest -v'
volumes:
gcp:
external: true