45 lines
813 B
YAML
45 lines
813 B
YAML
# https://docs.docker.com/compose/compose-file/
|
|
|
|
# 100.64.7.4/30 100.64.67.128/26
|
|
|
|
version: "2.4"
|
|
|
|
networks:
|
|
default:
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: 100.64.7.4/30
|
|
postfix:
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: 100.64.67.128/29
|
|
|
|
services:
|
|
mysql:
|
|
restart: unless-stopped
|
|
hostname: mysql.n3tw3rk.1ns3cur1ty.c0rp
|
|
image: mysql:5
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: password
|
|
networks:
|
|
default:
|
|
ipv4_address: 100.64.7.6
|
|
postfix:
|
|
ipv4_address: 100.64.67.130
|
|
volumes:
|
|
- type: volume
|
|
source: ephemeral
|
|
target: /var/lib/mysql
|
|
volume:
|
|
nocopy: false
|
|
ulimits:
|
|
nproc: 65535
|
|
nofile:
|
|
soft: 1024000
|
|
hard: 1024000
|
|
|
|
volumes:
|
|
ephemeral:
|