-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
53 lines (47 loc) · 1.01 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
services:
db:
image: redis:alpine
hostname: redis
restart: always
volumes:
- db_data:/data
expose:
- "6379"
sexurity-poller:
depends_on:
- db
image: sexurity
links:
- db
build:
context: .
dockerfile: Dockerfile
volumes:
- type: bind
source: config.yaml
target: /etc/sexurity/config.yaml
environment:
- APP_NAME=sexurity-poller
- CONFIG_NAME=poller
restart: always
command: [ "bash", "/usr/local/bin/yaml_to_cli.sh", "/etc/sexurity/config.yaml" ]
sexurity-discord:
depends_on:
- db
image: sexurity
links:
- db
build:
context: .
dockerfile: Dockerfile
volumes:
- type: bind
source: config.yaml
target: /etc/sexurity/config.yaml
environment:
- APP_NAME=sexurity-discord
- CONFIG_NAME=discord
restart: always
command: [ "bash", "/usr/local/bin/yaml_to_cli.sh", "/etc/sexurity/config.yaml" ]
volumes:
db_data: