palm-paste/docker-compose.yml

43 lines
822 B
YAML
Raw Normal View History

2023-09-12 22:02:07 +01:00
version: '3.9'
services:
web:
image: nginx:latest
ports:
- '8080:80'
volumes:
2023-09-13 20:36:33 +01:00
- ./src:/var/www/html
2023-09-12 22:02:07 +01:00
- ./nginx_cfg.conf:/etc/nginx/conf.d/default.conf
links:
- php-fpm
php-fpm:
build:
dockerfile: "php-fmt.Dockerfile"
environment:
SQL_HOST: db
volumes:
2023-09-13 20:36:33 +01:00
- ./src:/var/www/html
2023-09-12 22:02:07 +01:00
db:
image: mysql:5.6
container_name: db
environment:
MYSQL_ROOT_PASSWORD: 1asd6ad151g16hj161m6u16m1ik187u1y6m1
MYSQL_DATABASE: palm-paste
MYSQL_USER: paste
MYSQL_PASSWORD: ckQgRJRhib74XMgVpzmn38uj1MrCcNnK7L9bc7zu
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: pma
links:
- db
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_ARBITRARY: 1
restart: always
ports:
- 8081:80