-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.yml
75 lines (73 loc) · 2.58 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: '2.1'
services:
db-test:
image: postgis/postgis:16-3.4
env_file: environment-docker
test:
image: ghcr.io/ebmdatalab/openprescribing-py312-test:latest
command: /bin/bash -c './scripts/docker_setup.sh test && cd openprescribing && make test'
env_file: environment-docker
environment:
- DJANGO_SETTINGS_MODULE=openprescribing.settings.test
- TRAVIS=${TRAVIS}
- BROWSER=${BROWSER}
- TEST_SUITE=${TEST_SUITE}
- TRAVIS_JOB_NUMBER=${TRAVIS_JOB_NUMBER}
- TRAVIS_BUILD_NUMBER=${TRAVIS_BUILD_NUMBER}
- TRAVIS_BRANCH=${TRAVIS_BRANCH}
- TRAVIS_PULL_REQUEST=${TRAVIS_PULL_REQUEST}
- TRAVIS_JOB_ID=${TRAVIS_JOB_ID}
- COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN}
- COVERALLS_PARALLEL=true
- GOOGLE_APPLICATION_CREDENTIALS=/code/google-credentials.json
- GITHUB_ACTIONS=${GITHUB_ACTIONS}
- BROWSERSTACK_USERNAME=${BROWSERSTACK_USERNAME}
- BROWSERSTACK_ACCESS_KEY=${BROWSERSTACK_ACCESS_KEY}
- BROWSERSTACK_PROJECT_NAME=${BROWSERSTACK_PROJECT_NAME}
- BROWSERSTACK_BUILD_NAME=${BROWSERSTACK_BUILD_NAME}
- BROWSERSTACK_LOCAL_IDENTIFIER=${BROWSERSTACK_LOCAL_IDENTIFIER}
ports:
- "6080-6580:6080-6580"
- "6060:6060"
volumes:
- .:/code
depends_on:
- db-test
test-production:
image: ghcr.io/ebmdatalab/openprescribing-py312-base:latest
command: /bin/bash -c './scripts/docker_setup.sh production && cd openprescribing && python manage.py check --deploy --settings openprescribing.settings.production'
env_file: environment-docker
environment:
- TRAVIS=${TRAVIS}
- TEST_SUITE=${TEST_SUITE}
- BROWSER=${BROWSER}
- TRAVIS_JOB_NUMBER=${TRAVIS_JOB_NUMBER}
- TRAVIS_BUILD_NUMBER=${TRAVIS_BUILD_NUMBER}
- TRAVIS_BRANCH=${TRAVIS_BRANCH}
- TRAVIS_PULL_REQUEST=${TRAVIS_PULL_REQUEST}
- TRAVIS_JOB_ID=${TRAVIS_JOB_ID}
- COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN}
- COVERALLS_PARALLEL=true
- GOOGLE_APPLICATION_CREDENTIALS=/code/google-credentials.json
extra_hosts:
- "saucehost:${SAUCE_HOST-127.0.0.1}"
ports:
- "6080-6580:6080-6580"
- "6060:6060"
volumes:
- .:/code
depends_on:
- db-test
db-dev:
image: postgis/postgis:16-3.4
env_file: environment-docker
dev:
image: ghcr.io/ebmdatalab/openprescribing-py312-test:latest
command: /bin/bash -c './scripts/docker_setup.sh local && cd openprescribing && /bin/bash -l'
env_file: environment-docker
ports:
- "8000:8000"
volumes:
- .:/code
depends_on:
- db-dev