58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
version: '2'
|
|
|
|
services:
|
|
tao_nginx:
|
|
container_name: tao_nginx
|
|
image: nginx:stable
|
|
restart: unless-stopped
|
|
networks:
|
|
- tao_network
|
|
ports:
|
|
- "80:80"
|
|
# - "443:443"
|
|
volumes_from:
|
|
- tao_phpfpm
|
|
volumes:
|
|
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:cached
|
|
- /etc/letsencrypt/live/cybertest3.wmi.amu.edu.pl/fullchain.pem:/letsencrypt/fullchain.pem:ro
|
|
- /etc/letsencrypt/live/cybertest3.wmi.amu.edu.pl/privkey.pem:/letsencrypt/privkey.pem:ro
|
|
- ./app:/var/www/html:ro
|
|
working_dir: /etc/nginx/conf.d
|
|
|
|
tao_phpfpm:
|
|
container_name: tao_phpfpm
|
|
build:
|
|
context: ./docker/phpfpm
|
|
restart: unless-stopped
|
|
expose:
|
|
- 9000
|
|
networks:
|
|
- tao_network
|
|
volumes:
|
|
- ./app:/var/www/html:cached
|
|
working_dir: /var/www/html
|
|
|
|
tao_db:
|
|
container_name: tao_db
|
|
image: mariadb:latest
|
|
restart: unless-stopped
|
|
networks:
|
|
- tao_network
|
|
ports:
|
|
- 3306
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: CUxdV2hV4n57C65sgs4gaXQfYnbsuA
|
|
MYSQL_USER: tao
|
|
MYSQL_PASSWORD: uR6pPe7fEopcs6q9c5nNEzqaZhzcRo
|
|
MYSQL_DATABASE: tao
|
|
volumes:
|
|
- tao_mariadb_data:/var/lib/mysql:cached
|
|
|
|
volumes:
|
|
tao_mariadb_data:
|
|
driver: local
|
|
|
|
networks:
|
|
tao_network:
|
|
driver: bridge
|