-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
98 lines (89 loc) · 2.49 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
version: "3"
networks:
production:
services:
redis:
image: redis
ports:
- "6379:6379"
deploy:
replicas: 1
restart_policy:
condition: any
networks:
- production
configpy:
image: natemellendorf/configpy:latest
deploy:
replicas: 1
restart_policy:
condition: any
ports:
- "80:80"
networks:
- production
environment:
- REDIS_URI=redis
volumes:
# Optional: Can be used to map a directory containing firmware to configpy for HTTP access from configpy-node.
- "c:/dockerstorage/configpy/firmware:/home/devops/configpy/static/firmware"
depends_on:
- redis
configpy-node:
image: natemellendorf/configpy-node:latest
deploy:
replicas: 1
restart_policy:
condition: any
ports:
- "9000:9000"
networks:
- production
depends_on:
- redis
- configpy
# - - - - - - - - - - - - - - -
# ConfigPy-Node commands below:
# - - - - - - - - - - - - - - -
# -user
# Username used to authenticate to each Junos device.
#
# -password
# Password for the username provided above.
#
# -configpy_url
# URL to configpy container.
# Required for websocket to function.
#
# -redis_url
# URL to Redis instance.
# If you're using this compose file, leave this as redis
#
# -repo_uri
# URL to GitLab repository that holds your Junos .set config files.
#
# -repo_auth_token
# GitLab token with API access for your user.
#
# -software_location
# URL to public web directory which contains the firmware image below.
# I tend to use configpy for this.
#
# -srx_firmware
# Full filename for your SRX firmware, which is located in the software_location.
# Must end in .tgz
# Must contain firmware version in the name.
#
# -srx_firmware_checksum
# MD5 checksum for the srx_firmware above.
# Used to validate the firmware before install.
command: |
-user ztp
-password P@ssw0rd
-configpy_url http://configpy
-redis_url redis
-repo_uri http://gitlab:8080/networking/configs
-repo_auth_token pBip1GDe1zRrXxsjR-Px
-software_location http://10.0.0.204/static/firmware/
-srx_firmware junos-srxsme-15.1X49-D170.4-domestic.tgz
-srx_firmware_checksum 8e8bd9fa8cccbb91144ac8a58d1192dc