Sample
This commit is contained in:
parent
506c156b49
commit
5ada037778
75
compose/docker-compose-1.sample.yml
Normal file
75
compose/docker-compose-1.sample.yml
Normal file
@ -0,0 +1,75 @@
|
||||
version: '2.3'
|
||||
services:
|
||||
# PHP 5.6 FPM
|
||||
fpm56:
|
||||
build: ./dockerfiles/php-fpm/5.6/debian-8
|
||||
image: php-fpm:5.6-debian
|
||||
container_name: fpm56
|
||||
volumes:
|
||||
- ${WORKSPACE}:/home/vhosts
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "1g"
|
||||
max-file: "10"
|
||||
# PHP 7.0 FPM
|
||||
fpm70:
|
||||
build: ./dockerfiles/php-fpm/7.0/debian-9
|
||||
image: php-fpm:7.0-debian
|
||||
container_name: fpm70
|
||||
volumes:
|
||||
- ${WORKSPACE}:/home/vhosts
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "1g"
|
||||
max-file: "10"
|
||||
# MailCatcher
|
||||
mailcatcher:
|
||||
build: ./dockerfiles/mailcatcher
|
||||
image: mailcatcher:0.6.5
|
||||
container_name: mailcatcher
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "1g"
|
||||
max-file: "10"
|
||||
# MariaDB
|
||||
db:
|
||||
build: ./dockerfiles/mariadb/10.2/debian
|
||||
image: mariadb:10.2-debian
|
||||
container_name: db
|
||||
user: mysql
|
||||
volumes:
|
||||
- ${WORKSPACE}/database:/var/lib/mysql
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "500m"
|
||||
max-file: "9"
|
||||
environment:
|
||||
MARIADB_PASS: password
|
||||
# Apache HTTPd
|
||||
httpd:
|
||||
build: ./dockerfiles/httpd/2.4/debian-9
|
||||
image: httpd:2.4-debian
|
||||
container_name: httpd
|
||||
volumes:
|
||||
- ${WORKSPACE}:/home/vhosts
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "1g"
|
||||
max-file: "10"
|
||||
networks:
|
||||
front:
|
||||
ipv4_address: 172.10.0.2
|
||||
|
||||
networks:
|
||||
front:
|
||||
driver: bridge
|
||||
ipam:
|
||||
driver: default
|
||||
config:
|
||||
- subnet: 172.10.0.0/16
|
||||
gateway: 172.10.0.1
|
74
compose/docker-compose-2.sample.yml
Normal file
74
compose/docker-compose-2.sample.yml
Normal file
@ -0,0 +1,74 @@
|
||||
version: '2.3'
|
||||
services:
|
||||
# PHP 5.6 FPM
|
||||
fpm56:
|
||||
build: ./dockerfiles/php-fpm/5.6/debian-8
|
||||
image: php-fpm:5.6-debian
|
||||
container_name: fpm56
|
||||
volumes:
|
||||
- ${WORKSPACE}:/home/vhosts
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "1g"
|
||||
max-file: "10"
|
||||
# PHP 7.0 FPM
|
||||
fpm70:
|
||||
build: ./dockerfiles/php-fpm/7.0/debian-9
|
||||
image: php-fpm:7.0-debian
|
||||
container_name: fpm70
|
||||
volumes:
|
||||
- ${WORKSPACE}:/home/vhosts
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "1g"
|
||||
max-file: "10"
|
||||
# MailCatcher
|
||||
mailcatcher:
|
||||
build: ./dockerfiles/mailcatcher
|
||||
image: mailcatcher:0.6.5
|
||||
container_name: mailcatcher
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "1g"
|
||||
max-file: "10"
|
||||
# MariaDB
|
||||
db:
|
||||
build: ./dockerfiles/mariadb/10.2/official
|
||||
image: mariadb:10.2-official
|
||||
container_name: db
|
||||
volumes:
|
||||
- ${WORKSPACE}/database:/var/lib/mysql
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "500m"
|
||||
max-file: "9"
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: password
|
||||
# Apache HTTPd
|
||||
httpd:
|
||||
build: ./dockerfiles/httpd/2.4/debian-9
|
||||
image: httpd:2.4-debian
|
||||
container_name: httpd
|
||||
volumes:
|
||||
- ${WORKSPACE}:/home/vhosts
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "1g"
|
||||
max-file: "10"
|
||||
networks:
|
||||
front:
|
||||
ipv4_address: 172.10.0.2
|
||||
|
||||
networks:
|
||||
front:
|
||||
driver: bridge
|
||||
ipam:
|
||||
driver: default
|
||||
config:
|
||||
- subnet: 172.10.0.0/16
|
||||
gateway: 172.10.0.1
|
1
compose/env.sample
Normal file
1
compose/env.sample
Normal file
@ -0,0 +1 @@
|
||||
WORKSPACE=/home/ubuntu/workspace
|
Loading…
Reference in New Issue
Block a user