web-base/docker-compose.yml

43 lines
922 B
YAML
Raw Normal View History

2021-04-07 19:43:22 +02:00
version: "3.9"
services:
web:
2024-03-24 17:36:16 +01:00
container_name: webbase-web
2021-04-07 19:43:22 +02:00
ports:
- "80:80"
volumes:
- .:/application:rw
- ./docker/nginx/site.conf:/etc/nginx/conf.d/default.conf:ro
2021-05-04 20:56:47 +02:00
build:
context: './docker/nginx/'
2021-04-07 19:43:22 +02:00
links:
- db
- php
db:
2024-03-24 17:36:16 +01:00
container_name: webbase-db
2021-04-07 19:43:22 +02:00
image: mariadb:latest
ports:
- '3306:3306'
environment:
- "MYSQL_ROOT_PASSWORD=webbasedb"
- "MYSQL_DATABASE=webbase"
php:
2024-03-24 17:36:16 +01:00
container_name: webbase-php
2021-04-07 19:43:22 +02:00
volumes:
- .:/application:rw
- ./docker/php/php.ini:/usr/local/etc/php/php.ini:ro
build:
context: './docker/php/'
links:
- db
2024-04-23 20:14:32 +02:00
- cache
cache:
container_name: webbase-redis
image: redis:latest
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass webbase-redis
volumes:
- cache:/data
volumes:
cache:
driver: local