-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
112 lines (105 loc) · 2.5 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
105
106
107
108
109
110
111
112
version: "3.7"
services:
aftok:
image: aftok/aftok-server:latest
container_name: aftok-server
expose:
- "8000"
depends_on:
- aftokdb
volumes:
- type: bind
source: ./local/server/conf
target: /etc/aftok
read_only: true
- type: bind
source: ./local/server/log
target: /opt/aftok/log
networks:
- front-tier
- back-tier
init: true
aftok-client:
image: aftok/aftok-client:latest
container_name: aftok-client
entrypoint: /opt/aftok/aftok-client-cp.sh dist
volumes:
- type: volume
source: v_aftok-client
target: /opt/aftok/client/dist-volume
nginx:
image: nginx:latest
container_name: aftok-nginx
ports:
- "8080:80"
- "8443:443"
depends_on:
- aftok
volumes:
- type: bind
source: ./local/nginx/conf
target: /etc/nginx
read_only: true
- type: bind
source: ./local/nginx/certs
target: /opt/nginx
read_only: true
- type: bind
source: ./local/nginx/log
target: /var/log/nginx
- type: bind
source: ./aftok.com/dist/
target: /opt/static/site
read_only: true
- type: bind
source: ./client/dist
target: /opt/static/app
read_only: true
# - type: volume
# source: v_aftok-client
# target: /opt/static/app
# read_only: true
networks:
- front-tier
aftokdb:
image: postgres:9.4
container_name: aftok-db
expose:
- "15432"
ports:
- "15432:5432"
env_file:
- pg.env
volumes:
- type: volume
source: v_aftok-data
target: /var/lib/postgresql/data
- type: bind
source: ./local/postgres/db-dumps
target: /opt/
read_only: true
networks:
- back-tier
# zcashd:
# image: electriccoinco/zcashd:v4.5.1-1
# container_name: aftok-zcashd
# expose:
# - "18232"
# ports:
# - "18233:18233"
# volumes:
# - type: bind
# source: ./local/zcashd/zcash-data
# target: /srv/zcashd/.zcash
# - type: bind
# source: ./local/zcashd/zcash-params
# target: /srv/zcashd/.zcash-params
# read_only: true
# networks:
# - back-tier
volumes:
v_aftok-data:
v_aftok-client:
networks:
front-tier:
back-tier: