Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ######################
- # docker-compose.yml #
- ######################
- version: '3.3'
- services:
- 1_openvpn:
- cap_add:
- - NET_ADMIN
- image: localhost:5000/kylemanna/openvpn-latest
- container_name: 1_openvpn
- ports:
- - 10.64.0.101:1194:1194/udp
- restart: always
- volumes:
- - /data/n_1/openvpn:/etc/openvpn
- # is service is connected to both the internal network subnet
- # and the host connected network doorway
- networks:
- 1_subnet:
- 1_doorway:
- ipv4_address: 10.64.0.80
- 1_apache:
- image: localhost:5000/php-7.2-apache
- container_name: 1_apache
- restart: always
- environment:
- - ALLOW_OVERRIDE=true
- ports:
- - 81
- depends_on:
- - 1_db
- links:
- - 1_db
- volumes:
- - /data/n_1/apache:/var/lib/apache
- networks:
- - 1_subnet
- 1_db:
- # original image
- #image: mariadb
- image: localhost:5000/mariadb-latest
- container_name: 1_db
- restart: always
- volumes:
- - /data/n_1/db:/var/lib/db
- environment:
- MYSQL_ROOT_PASSWORD:
- MYSQL_USER: mysql_user
- MYSQL_PASSWORD: mysql_password
- MYSQL_DATABASE: 1_database
- ports:
- - 3306
- networks:
- - 1_subnet
- 1_phpmyadmin:
- # original image
- #image: phpmyadmin/phpmyadmin:latest
- image: localhost:5000/phpmyadmin/phpmyadmin-latest
- container_name: 1_phpmyadmin
- restart: always
- volumes:
- - /data/n_1/phpmyadmin:/var/lib/phpmyadmin
- depends_on:
- - 1_db
- links:
- - 1_db
- ports:
- - 8890:80
- environment:
- MYSQL_USER: mysql_user
- MYSQL_PASSWORD: mysql_password
- MYSQL_DATABASE: 1_database
- networks:
- - 1_subnet
- 1_samba:
- volumes:
- # - ./app:/var/www/html
- - /data/n_1/samba:/var/lib/samba
- # original image
- #image: dperson/samba
- image: localhost:5000/dperson/samba-latest
- container_name: 1_samba
- ports:
- - 139
- - 445
- - 137/udp
- - 138/udp
- command: '-s "x;/var/www/html;yes;no;yes;all"'
- networks:
- - 1_subnet
- 1_thecodingmachine:
- # original image
- #image: thecodingmachine/php:7.2-v1-cli
- image: localhost:5000/thecodingmachine/php-7.2-v1-cli
- container_name: 1_thecodingmachine
- volumes:
- - /data/n_1/thecodingmachine:/var/lib/thecodingmachine
- ports:
- - 22
- - 81
- stdin_open: true
- tty: true
- networks:
- - 1_subnet
- networks:
- # this network only has local access
- 1_subnet:
- driver: bridge
- internal: true
- # this network is host based and has internet access for VPN connections
- 1_doorway:
- driver: macvlan
- driver_opts:
- parent: eth0
- ipam:
- config:
- # - gateway: 10.64.0.1
- - subnet: 10.64.0.0/24
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement