forked from p4paul/helix-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
104 lines (100 loc) · 2.75 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: '3.2'
services:
p4d.helix:
build:
context: helix-p4d
dockerfile: Dockerfile
restart: always
container_name: p4d.helix
hostname: p4d
domainname: helix
ports:
- 1666:1666
volumes:
- ./data/helix-p4d:/p4
tty: true
environment:
P4NAME: $P4NAME
P4TCP: $P4TCP
P4PORT: $P4TCP
P4USER_FILE: /run/secrets/helix_p4_user
P4PASSWD_FILE: /run/secrets/helix_p4_password
P4CASE: $P4CASE
P4CHARSET: $P4CHARSET
SECURITY: $SECURITY
secrets:
- helix_p4_user
- helix_p4_password
redis.helix:
image: redis:alpine
restart: always
container_name: redis.helix
hostname: redis
domainname: helix
volumes:
- ./tmp/redis:/data
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
environment:
REDIS_HOST_PASSWORD_FILE: /run/secrets/helix_redis_host_password
command: [
"sh", "-c",
'
docker-entrypoint.sh
--requirepass "$$(cat $$REDIS_HOST_PASSWORD_FILE)"
'
]
secrets:
- helix_redis_host_password
swarm.helix:
build:
context: helix-swarm
dockerfile: Dockerfile
restart: always
container_name: swarm.helix
hostname: swarm
domainname: helix
depends_on:
- redis.helix
- p4d.helix
tty: true
environment:
P4PORT: $P4PORT
P4USER_FILE: /run/secrets/helix_p4_user
P4PASSWD_FILE: /run/secrets/helix_p4_password
SWARMHOST: $SWARMHOST
SWARMUSER_FILE: /run/secrets/helix_swarm_user
SWARMPASSWD_FILE: /run/secrets/helix_swarm_password
SWARMTOKEN_FILE: /run/secrets/helix_swarm_token
REDISPASSWORD_FILE: /run/secrets/helix_redis_host_password
MAILHOST: $MAILHOST
BASE_URL: $BASE_URL
# for use with nginx proxy from https://github.com/evertramos/nginx-proxy-automation
VIRTUAL_PORT: 80
VIRTUAL_HOST: $BASE_URL
LETSENCRYPT_HOST: $BASE_URL
LETSENCRYPT_EMAIL: $EMAIL
NETWORK: $NETWORK
secrets:
- helix_p4_user
- helix_p4_password
- helix_swarm_user
- helix_swarm_password
- helix_swarm_token
- helix_redis_host_password
secrets:
helix_p4_user:
file: ./helix_p4_user.txt # put admin password to this file
helix_p4_password:
file: ./helix_p4_password.txt # put admin username to this file
helix_swarm_user:
file: ./helix_swarm_user.txt # put swarm user to this file
helix_swarm_password:
file: ./helix_swarm_password.txt # put swarm password to this file
helix_swarm_token:
file: ./helix_swarm_token.txt # put swarm token to this file
helix_redis_host_password:
file: ./helix_redis_host_password.txt # put redis password to this file
networks:
default:
external: true
name: $NETWORK