-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.ci.prod.images.yaml
48 lines (47 loc) · 1.75 KB
/
docker-compose.ci.prod.images.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
version: '3.8'
services:
mainnetwork:
links:
- "nginx:rsr.localdev.akvo.org"
django-prod:
image: eu.gcr.io/${PROJECT_NAME}/rsr-backend-staging:${TRAVIS_COMMIT}
network_mode: service:nginx
volumes:
- ./scripts/docker/dev/50-docker-local-dev.conf:/config_overrides/50-docker-local-dev.conf
- ./scripts/docker/ci/51-docker-ci-dev.conf:/config_overrides/51-docker-ci-dev.conf
- media-disk:/var/akvo/rsr/staticroot/
environment:
- WAIT_FOR_DEPENDENCIES=yes
- DJANGO_SECRET_KEY=secretkey
- DEFAULT_FILE_STORAGE=django.core.files.storage.FileSystemStorage
reports:
image: eu.gcr.io/${PROJECT_NAME}/rsr-backend-staging:${TRAVIS_COMMIT}
network_mode: service:nginx
volumes:
- ./scripts/docker/dev/50-docker-local-dev.conf:/config_overrides/50-docker-local-dev.conf
- ./scripts/docker/ci/51-docker-ci-dev.conf:/config_overrides/51-docker-ci-dev.conf
- media-disk:/var/akvo/rsr/staticroot/
environment:
- WAIT_FOR_DEPENDENCIES=yes
- DJANGO_SECRET_KEY=secretkey
- IS_REPORTS_CONTAINER=yes
- DJANGO_PORT=9000
- DEFAULT_FILE_STORAGE=django.core.files.storage.FileSystemStorage
nginx:
image: eu.gcr.io/${PROJECT_NAME}/rsr-nginx-staging:${TRAVIS_COMMIT}
container_name: rsr.localdev.akvo.org
volumes:
- media-disk:/data
environment:
- REPORT_SERVER_URL=http://localhost:8080/
- REPORT_SERVER_API_KEY=dasf&!"£c
- DJANGO_DEFAULT_FILE_STORAGE=django.core.files.storage.FileSystemStorage
- GOOGLE_STORAGE_BUCKET_NAME=akvo-rsr-test-media-files
- ENVIRONMENT=test
- CI_COMMIT=1234567899876543212
- COPY_STATIC_CONTENT_FOR_CI_BUILD=yes
web:
image: rsr-backend:dev
command: "true"
volumes:
media-disk: