-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 941 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 941 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
40
41
42
43
44
45
46
version: '3'
services:
database:
container_name: database
image: mysql:latest@sha256:516b92a7ccf2340c1a696a7ad2de1784393d0876d042cc4913bc33fb3f455a75
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- "3306:3306"
volumes:
- "./.docker/mysql:/var/lib/mysql/"
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: db_application
SERVICE_TAGS: dev
SERVICE_NAME: mysql
networks:
- app_network
php:
container_name: php
build: ./.docker/php
entrypoint: ./docker-entrypoint.sh
tty: true
ports:
- "9000:9000"
volumes:
- "./:/var/www"
networks:
- app_network
nginx:
container_name: nginx
build: ./.docker/nginx
restart: always
ports:
- "8001:80"
volumes:
- "./:/var/www"
networks:
- app_network
networks:
app_network:
driver: bridge