-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
54 lines (50 loc) · 1.42 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.6'
services:
db:
image: postgres:11.6
command: postgres -c fsync=${FSYNC:-off} -c max_connections=200
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
redis:
image: redis:alpine
ports:
- 6379:6379
base:
image: "${IMAGE_BASE}overhave-base:${POETRY_CONTENT_HASH:-unset}"
build:
context: .
dockerfile: docker/Dockerfile.base
network: host
args:
DOCKER_HUB_PROXY: "${DOCKER_HUB_PROXY}"
code:
image: "${IMAGE_BASE}overhave:${BUILD_NUMBER:-unset}"
build:
context: .
dockerfile: docker/Dockerfile.code
network: host
args:
IMAGE_BASE: "${IMAGE_BASE}"
POETRY_CONTENT_HASH: "${POETRY_CONTENT_HASH:-unset}"
environment:
- OVERHAVE_DB_URL=${OVERHAVE_DB_URL:-postgresql://postgres:postgres@db/postgres}
- OVERHAVE_REDIS_URL=${OVERHAVE_REDIS_URL:-redis://redis:6379}
- OVERHAVE_REDIS_SENTINEL_URLS=${OVERHAVE_REDIS_SENTINEL_URLS:-["redis://redis:6379"]}
- PACKAGE_BUILD_DIR=${PACKAGE_BUILD_DIR:-.package/dist}
depends_on:
- db
- redis
publish:
build:
context: .
dockerfile: docker/Dockerfile.publish
network: host
args:
IMAGE_BASE: "${IMAGE_BASE}"
BUILD_NUMBER: "${BUILD_NUMBER:-unset}"
environment:
- PYPI_TOKEN=${PYPI_TOKEN:-unset}
- VENV=${VENV:-.tox/.package}