-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.tmpl
55 lines (55 loc) · 1.14 KB
/
docker-compose.tmpl
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
version: '2'
services:
db:
image: postgres:9.6.3-alpine
dns:
- 8.8.8.8
- 8.8.4.4
env_file:
- ./noa.env
ports:
- "5432:5432"
volumes:
- ./pgdc/pgdata:/var/lib/postgresql/data
noa:
image: noa:release
dns:
- 8.8.8.8
- 8.8.4.4
env_file:
- ./noa.env
environment:
- NOA_HOST=my.noa
- NOA_PORT=4000
#- NOA_SSL_PORT=4443
- NOA_SSL_KEY_PATH=/opt/app/ssl/noa_as.key
- NOA_SSL_CERT_PATH=/opt/app/ssl/noa_as.cert
- NOA_SSL_CACERT_PATH=/opt/app/ssl/noa_ca.cert
- NOA_DB_HOST=db
- NOA_DB_NAME=postgres
- NOA_DB_USER=postgres
- NOA_RO_QUICKSTART_CREDS_FILE=/opt/app/seeds/ro_quickstart.creds
ports:
- "4000:4000"
#- "4443:4443"
depends_on:
- db
links:
- db
volumes:
- ./ssl:/opt/app/ssl
- ./seeds:/opt/app/seeds
command: ["foreground"]
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
depends_on:
- noa
links:
- noa
volumes:
- ./nxdc/etc/nginx:/etc/nginx:ro
- ./nxdc/var/log/nginx:/var/log/nginx
- ./ssl:/ssl:ro