-
Notifications
You must be signed in to change notification settings - Fork 144
/
docker-compose.yml
53 lines (46 loc) · 1.29 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
version: '3.7'
x-common-settings:
&common-settings
CERYX_DEBUG: ${CERYX_DEBUG:-false}
CERYX_REDIS_HOST: ${CERYX_REDIS_HOST:-redis}
CERYX_REDIS_PORT: ${CERYX_REDIS_PORT:-6379}
CERYX_REDIS_TIMEOUT: ${CERYX_REDIS_TIMEOUT:-100}
services:
ceryx:
image: sourcelair/ceryx:latest
ports:
- ${CERYX_EXTERNAL_PORT:-80}:80
- ${CERYX_EXTERNAL_SSL_PORT:-443}:443
depends_on:
- redis
environment:
<<: *common-settings
CERYX_DISABLE_LETS_ENCRYPT: ${CERYX_DISABLE_LETS_ENCRYPT:-false}
CERYX_SSL_DEFAULT_CERTIFICATE: ${CERYX_SSL_DEFAULT_CERTIFICATE:-/etc/ceryx/ssl/default.crt}
CERYX_SSL_DEFAULT_KEY: ${CERYX_SSL_DEFAULT_KEY:-/etc/ceryx/ssl/default.key}
CERYX_DOCKERIZE_EXTRA_ARGS: -no-overwrite
command:
- usr/local/openresty/bin/openresty
- -g
- daemon off;
api:
image: sourcelair/ceryx-api:latest
depends_on:
- redis
- ceryx
environment:
<<: *common-settings
CERYX_API_HOST: ${CERYX_API_HOST:-0.0.0.0}
CERYX_API_HOSTNAME: ${CERYX_API_HOSTNAME:-localhost}
CERYX_API_PORT: ${CERYX_API_PORT:-5555}
redis:
image: redis:3.2.11-alpine
volumes:
- redis_data:/data
networks:
default:
attachable: true
driver: overlay
name: ceryx
volumes:
redis_data: