-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (70 loc) · 1.73 KB
/
docker-compose.yml
File metadata and controls
74 lines (70 loc) · 1.73 KB
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
version: '3.4'
services:
# https/ssl termination
ingress:
image: 'ingress'
build:
context: ingress
command:
[
'sh',
'-c',
'wait-for.sh $${FANTOM_HOSTNAME:-fantom}:18545 -t 600 -- run.sh',
]
restart: always
depends_on:
- fantom
ports:
- 443:443
- 80:80
volumes:
- ./volumes/ssl:/etc/nginx/ssl
# wait-for.sh
- ./wait-for.sh:/usr/local/bin/wait-for.sh
env_file:
- .env
environment:
INGRESS_HOSTNAME: ${FANTOM_HOSTNAME:-fantom.doublesharp.com}
SSL_CERT: ${FANTOM_HOSTNAME:-fantom.doublesharp.com}-fullchain.pem
SSL_KEY: ${FANTOM_HOSTNAME:-fantom.doublesharp.com}-privkey.pem
FANTOM_HOST: ${FANTOM_HOST:-fantom}
letsencrypt:
image: 'letsencrypt'
build:
context: letsencrypt
restart: always
volumes:
- ./volumes/ssl:/etc/nginx/ssl
- letsencrypt:/etc/letsencrypt
env_file:
- .env
environment:
DOMAIN: ${FANTOM_HOSTNAME:-fantom.doublesharp.com}
SSL_PATH: ${SSL_PATH:-/etc/nginx/ssl}
CLOUDFLARE_EMAIL: ${CLOUDFLARE_EMAIL}
CLOUDFLARE_API_KEY: ${CLOUDFLARE_API_KEY}
fantom:
image: 'opera'
# image: doublesharp/fantom-opera:latest
build:
context: opera
restart: always
ports:
- '5050:5050'
- '5050:5050/udp'
- '127.0.0.1:18545:18545'
- '127.0.0.1:18546:18546'
- '127.0.0.1:18547:18547'
- '127.0.0.1:19090:19090'
volumes:
- fantom:/root/.opera
- genesis:/genesis
env_file:
- .env
environment:
FANTOM_HOSTNAME: ${FANTOM_HOSTNAME:-fantom.doublesharp.com}
FANTOM_VERBOSITY: ${FANTOM_VERBOSITY:-3}
volumes:
fantom: {}
genesis: {}
letsencrypt: {}