Docker container scripts for automated apache-phpfpm-mysql-memcached
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

32 lines
437 B

version: "3.3"
services:
apache:
build:
context: ./apache
dockerfile: Dockerfile
ports:
- 81:80
phpfpm:
build:
context: ./phpfpm
dockerfile: Dockerfile
volumes:
- ./src:/var/www/html
ports:
- 9000:9000
database:
image: mysql:latest
volumes:
- dbvolume:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: todos
cacheserver:
image: memcached
volumes:
dbvolume: