-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
45 lines (42 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#Rename
version: "3.7"
services:
project-php:
build:
args:
user: ${DOCKER_USER:-www}
uid: ${DOCKER_UID:-1000}
context: ./
dockerfile: ./.docker/php/dockerfile
container_name: ${APP_NAME}-php
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
- ~/.ssh:/home/${DOCKER_USER:-www}/.ssh
- ./.docker/php/php.ini:/usr/local/etc/php/php.ini
- ./.docker/php/conf.d/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
environment:
PHP_IDE_CONFIG: "serverName=localhost"
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- project-network
project-nginx:
build:
context: ./
dockerfile: ./.docker/nginx/nginx.dockerfile
container_name: ${APP_NAME}-nginx
restart: unless-stopped
ports:
- '${DOCKER_HTTPS_PORT:-8000}:443'
- '${DOCKER_HTTP_PORT:-8080}:80'
volumes:
- ./:/var/www
- ./.docker/nginx/conf.d/:/etc/nginx/conf.d/
networks:
- project-network
networks:
project-network:
name: ${APP_NAME}-network
driver: bridge