2024-02-11 13:27:43 +01:00
|
|
|
version: '3.5'
|
|
|
|
name: webstack
|
|
|
|
|
|
|
|
# Services
|
|
|
|
services:
|
|
|
|
|
|
|
|
# PHP FPM Service
|
|
|
|
php:
|
2024-06-17 17:09:34 +02:00
|
|
|
image: php:seph
|
2024-02-11 13:27:43 +01:00
|
|
|
container_name: php
|
|
|
|
build:
|
|
|
|
dockerfile: php-dockerfile
|
|
|
|
context: .
|
|
|
|
volumes:
|
|
|
|
- 'webdata:/var/www/html'
|
2024-06-17 16:50:55 +02:00
|
|
|
# depends_on:
|
|
|
|
# - mariadb
|
2024-02-11 13:27:43 +01:00
|
|
|
|
|
|
|
# Nginx Service
|
|
|
|
nginx:
|
2024-06-17 17:09:34 +02:00
|
|
|
image: nginx:seph
|
|
|
|
container_name: nginx
|
2024-02-11 13:47:01 +01:00
|
|
|
build:
|
|
|
|
dockerfile: nginx-dockerfile
|
|
|
|
context: .
|
2024-06-17 21:08:27 +02:00
|
|
|
ports:
|
|
|
|
- "$PORT:80"
|
2024-02-11 13:27:43 +01:00
|
|
|
links:
|
|
|
|
- 'php'
|
|
|
|
volumes:
|
|
|
|
- 'webdata:/var/www/html'
|
|
|
|
depends_on:
|
|
|
|
- php
|
|
|
|
|
|
|
|
# Volumes
|
|
|
|
volumes:
|
|
|
|
webdata:
|