-
Notifications
You must be signed in to change notification settings - Fork 34
/
common-services.yml
59 lines (54 loc) · 1.79 KB
/
common-services.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
# Defines development and production services for Cyphon Engine.
# Expects a config directory to contain customized versions of:
#
# - base.py
# - conf.py
# - dev.py
# - prod.py
#
# Example files can be found in the cyphon.settings package.
version: '2'
services:
cyphon-dev:
build: ../cyphon
restart: always
env_file:
- ./config/env/cyphon.env
environment:
CYPHON_ENV: DEV
DJANGO_SETTINGS_MODULE: cyphon.settings.dev
volumes:
- ../cyphon/cyphon:/usr/src/app/cyphon
- ../cyphon/entrypoints:/usr/src/app/entrypoints
- ./config/cyphon/custom:/usr/src/app/cyphon/custom
- ./config/cyphon/settings:/usr/src/app/cyphon/cyphon/settings
cyphon-prod:
image: dunbar/cyphon:${CYPHON_VER}
restart: always
env_file:
- ./config/env/cyphon.env
environment:
CYPHON_ENV: PROD
DJANGO_SETTINGS_MODULE: cyphon.settings.prod
volumes:
- /opt/cyphon/media:/usr/src/app/media
- /opt/cyphon/keys:/usr/src/app/keys
- ./config/cyphon/custom:/usr/src/app/cyphon/custom
- ./config/cyphon/settings:/usr/src/app/cyphon/cyphon/settings
cyphon-test:
image: dunbar/cyphon:${CYPHON_VER}
env_file:
- ./config-COPYME/env/cyphon.env
environment:
CYPHON_ENV: PROD
DJANGO_SETTINGS_MODULE: cyphon.settings.prod
DJANGO_LIVE_TEST_SERVER_ADDRESS: cyphon:8081-8100
FUNCTIONAL_TESTS_ENABLED: ${FUNCTIONAL_TESTS_ENABLED}
FUNCTIONAL_TESTS_DRIVER: docker
FUNCTIONAL_TESTS_HOST: selenium
FUNCTIONAL_TESTS_PORT: 4444
FUNCTIONAL_TESTS_BROWSER: chrome
volumes:
- ./config-COPYME/cyphon/custom:/usr/src/app/cyphon/custom
- ./config-COPYME/cyphon/settings:/usr/src/app/cyphon/cyphon/settings
- ./config-COPYME/cyphon/fixtures:/usr/src/app/cyphon/fixtures