This commit is contained in:
andrey
2023-08-08 15:22:39 +03:00
commit 8c73e86a10
5 changed files with 50 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
version: '2'
services:
php-apache-environment:
container_name: php-apache
build:
context: ./php
dockerfile: Dockerfile
depends_on:
- db
volumes:
- ./app:/var/www/html/
ports:
- 8000:80
db:
container_name: db
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: MYSQL_ROOT_PASSWORD
POSTGRES_DB: MY_DATABASE
POSTGRES_USER: MYSQL_USER
#adminer:
# container_name: adminer
# image: adminer
# restart: always
# ports:
# - 8080:8080