Skip to content

Instantly share code, notes, and snippets.

View marcelo-ochoa's full-sized avatar

Marcelo Ochoa marcelo-ochoa

View GitHub Profile
# quantumobject/docker-zoneminder:1.31.1 build from https://github.com/marcelo-ochoa/docker-zoneminder
# dockercloud/haproxy:1.6.7.1 build from https://github.com/marcelo-ochoa/dockercloud-haproxy
version: '3.2'
services:
db:
image: mysql/mysql-server:5.7
networks:
- net
volumes:
@marcelo-ochoa
marcelo-ochoa / docker-compose.yml
Created May 22, 2018 14:05
Portainer + Portainer Agent deployment
version: "3.2"
services:
agent_dtics:
image: portainer/agent
environment:
# REQUIRED: Should be equal to the service name prefixed by "tasks." when
# deployed inside an overlay network
AGENT_CLUSTER_ADDR: tasks.portainer_agent_dtics
# AGENT_PORT: 9001
@marcelo-ochoa
marcelo-ochoa / portainer-agent-stack.yml
Created May 22, 2018 14:20
stack definition for portainer agent at DC cluster
version: '3'
services:
dc:
image: portainer/agent
environment:
# REQUIRED: Should be equal to the service name prefixed by "tasks." when
# deployed inside an overlay network
AGENT_CLUSTER_ADDR: tasks.portainer_agent_dc
VIRTUAL_HOST: "https://agentsdc.exa.unicen.edu.ar"
@marcelo-ochoa
marcelo-ochoa / docker-compose-haproxy.yml
Created May 22, 2018 14:49
HAProxy stacks - rproxy DTICs load balancer- haproxy DC load balancer
version: '3.3'
services:
server:
image: dockercloud/haproxy:1.6.7
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- proxy_certs:/certs
ports:
- target: 80
@marcelo-ochoa
marcelo-ochoa / docker-compose.yml
Created May 23, 2018 13:05
Pandora docker-compose.yml and Apache SSL conf
version: '3.3'
services:
mysql:
image: slab/pandorafms-mysql:v7.0NG.722.7677
hostname: mysql
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
@marcelo-ochoa
marcelo-ochoa / crontab_dc.7751
Created May 23, 2018 14:20
Load Balancer (HAProxy) and Swarm Scheduler stacks
# Cada 1 hora
0 * * * * root run-task mon_cron
# Domigo 2:30am GLPI 7606
30 2 * * 0 root run-task letsencrypt_renew
# Domigo 1:30am GLPI 7751
30 1 * * 0 root run-task registry_purge
FROM oracle/database:12.2.0.1-ee as rdbms-ee
FROM oraclelinux:7-slim
RUN yum -y install libaio && \
rm -rf /var/cache/yum
COPY --from=rdbms-ee /opt/oracle/product/12.2.0.1/dbhome_1/bin/orion /usr/lib/oracle/12.2/client64/bin/
COPY --from=rdbms-ee \
/opt/oracle/product/12.2.0.1/dbhome_1/lib/libclntsh.so.12.1 \
FROM store/oracle/database-enterprise:12.2.0.1 as rdbms-ee
WORKDIR /
RUN tar xvf /tmp/dbsetup/dbtar/db12.2.0.1.0.tar.gz
FROM oraclelinux:7-slim
RUN yum -y install libaio && \
rm -rf /var/cache/yum
COPY --from=rdbms-ee /u01/app/oracle/product/12.2.0/dbhome_1/bin/orion /usr/lib/oracle/12.2/client64/bin/
version: '3.2'
volumes:
dbdata:
driver: local
driver_opts:
type: nfs
o: addr=10.1.253.110,rw,intr,hard,timeo=600,wsize=32768,rsize=32768,vers=4,tcp
device: ":/dbdata/test"
version: '3.6'
services:
pc:
image: oracle/database:18.4.0-xe-nfs
hostname: pc
volumes:
- db_data:/opt/oracle/oradata # persistent oracle database data.
- type: tmpfs
target: /dev/shm
tmpfs: