-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose-deploy.yaml
37 lines (37 loc) · 1.22 KB
/
docker-compose-deploy.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
# PHARUS_VERSION=0.8.12 docker-compose -f docker-compose-deploy.yaml pull
# PHARUS_VERSION=0.8.12 docker-compose -f docker-compose-deploy.yaml up -d
#
# Intended for production deployment.
# Note: You must run both commands above for minimal outage
# Make sure to add an entry into your /etc/hosts file as `127.0.0.1 fakeservices.datajoint.io`
# This serves as an alias for the domain to resolve locally.
# With this config and the configuration below in NGINX, you should be able to verify it is
# running properly with a `curl https://fakeservices.datajoint.io/api/version`.
version: "2.4"
x-net: &net
networks:
- main
services:
pharus:
<<: *net
image: datajoint/pharus:${PHARUS_VERSION}
# environment: # configurable values with defaults
# - PHARUS_PORT=5000
# - PHARUS_PREFIX=/
# - PHARUS_SPEC_PATH=tests/init/test_dynamic_api_spec.yaml # for dynamic api spec
fakeservices.datajoint.io:
<<: *net
image: datajoint/nginx:v0.2.3
environment:
- ADD_pharus_TYPE=REST
- ADD_pharus_ENDPOINT=pharus:5000
- ADD_pharus_PREFIX=/api
- HTTPS_PASSTHRU=TRUE
ports:
- "443:443"
- "80:80"
depends_on:
pharus:
condition: service_healthy
networks:
main: