-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
72 lines (70 loc) · 1.96 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
version: '2'
services:
aaa_manager:
build: .
image: aaa_manager:latest
entrypoint: gunicorn --reload --log-level DEBUG --paste development.ini
volumes:
- ./:/usr/src/app
- ./certs/:/certs
ports:
- "9000:9000"
depends_on:
- mongo
- cfssl
- nginx
networks:
backend:
ipv4_address: 172.250.0.85
nginx:
image: nginx:latest
container_name: nginx
expose:
- "80"
- "443"
- "8080"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- ./testsite/:/usr/share/nginx/html
- ./letsencrypt/:/etc/letsencrypt
- ./serverconf/:/etc/nginx/conf.d
networks:
backend:
ipv4_address: 172.250.0.86
cfssl:
image: cfssl/cfssl:latest
container_name: cfssl
ports:
- "8888:8888"
volumes:
- ./certs/:/certs
entrypoint: cfssl serve -address "172.250.0.87" -ca /certs/root_ca.pem -ca-key /certs/root_ca-key.pem
networks:
backend:
ipv4_address: 172.250.0.87
mongo:
image: mongo:3.3
container_name: mongo
volumes:
- ./db_scripts:/db_scripts
- ./data/:/data/db
- ./dump/:/dump
- ./certs/:/certs
ports:
- "27017:27017"
command: --smallfiles --rest
entrypoint: mongod --port 27017 --clusterAuthMode x509 --sslMode requireSSL --sslPEMKeyFile /certs/mongo_crt.pem --sslCAFile /certs/root_ca.pem --dbpath /data/db
networks:
backend:
ipv4_address: 172.250.0.88
networks:
backend:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.250.0.0/24
gateway: 172.250.0.1