-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 815 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (38 loc) · 815 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
version: '3'
services:
php:
container_name: WEB_SERVER
build: ./php
links:
- mariadb:db
volumes:
- ./src:/var/www/html
- ./php/php.ini:/usr/local/etc/php/php.ini
ports:
- "80:80"
depends_on:
- mariadb
mariadb:
container_name: DB_SERVER
image: mariadb:latest
volumes:
- ./mariadb:/var/lib/mysql
- ./sql/sait.sql:/docker-entrypoint-initdb.d/docker_postgres_init.sql
ports:
- "3306:3306"
env_file:
- .env
phpmyadmin:
container_name: MYADMIN
image: phpmyadmin/phpmyadmin
links:
- mariadb:db
ports:
- "8765:80"
volumes:
- ./php/php.ini:/usr/local/etc/php/php.ini
- ./php/php.ini:/etc/php/7.0/apache2/php.ini
env_file:
- .env
depends_on:
- mariadb