-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 838 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 838 Bytes
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
version: '3'
services:
web:
image: nginx:stable-alpine
container_name: nginx_app
ports:
- "8081:80"
volumes:
- .:/var/www/html
- ./docker/web/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
- mysql
mysql:
platform: linux/amd64
image: mysql:8.0
container_name: mysql_app
restart: "unless-stopped"
ports:
- "3307:3306"
volumes:
- ./docker/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
php:
build:
context: ./docker/php
dockerfile: Dockerfile
container_name: php_app
volumes:
- .:/var/www/html
ports:
- "9003:9000"