This repository has been archived by the owner on Sep 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
92 lines (87 loc) · 2 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
version: '3.1'
services:
aeon-docker:
image: aeonpocket/rpc
environment:
- DAEMON_HOST=192.168.2.110
- DAEMON_PORT=11181
deploy:
replicas: 5
update_config:
delay: 10s
restart_policy:
condition: on-failure
redis:
image: redis
volumes:
- /home/aeon/redis:/data
deploy:
replicas: 1
restart_policy:
condition: on-failure
mongo:
image: mongo
secrets:
- mongo_user
- mongo_pw
environment:
- MONGO_INITDB_ROOT_USERNAME_FILE=/run/secrets/mongo_user
- MONGO_INITDB_ROOT_PASSWORD_FILE=/run/secrets/mongo_pw
- MONGO_INITDB_DATABASE=aeon
volumes:
- /home/aeon/db:/data/db
- ./mongo-seed:/docker-entrypoint-initdb.d
ports:
- 192.168.2.110:27017:27017
deploy:
replicas: 1
restart_policy:
condition: on-failure
php-wallet:
image: aeonpocket/web-wallet
depends_on:
- mongo
- aeon-docker
- redis
secrets:
- mongo_user
- mongo_pw
- app_key
- admin_token
environment:
- APP_URL=https://localhost
- APP_KEY_FILE=/run/secrets/app_key
- APP_ADMIN_TOKEN=/run/secrets/admin_token
- APP_LOG=errorlog
- APP_RPC_URL=http://aeon-docker:11191/json_rpc
- DB_CONNECTION=mongodb
- SESSION_DRIVER=redis
- REDIS_HOST=redis
- REDIS_PASSWORD=null
- REDIS_PORT=6379
- MONGO_DB_HOST=mongo
- MONGO_DB_PORT=27017
- MONGO_DB_DATABASE=aeon
- MONGO_DB_USERNAME_FILE=/run/secrets/mongo_user
- MONGO_DB_PASSWORD_FILE=/run/secrets/mongo_pw
- MONGO_DB_MAIN_DB=admin
volumes:
- ./conf:/etc/apache2/sites-enabled
- /home/aeon/ssl:/root/ssl
ports:
- 80:80
- 443:443
deploy:
replicas: 3
restart_policy:
condition: on-failure
max_attempts: 3
secrets:
mongo_user:
external: true
mongo_pw:
external: true
app_key:
external: true
admin_token:
external: true