-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
48 lines (44 loc) · 978 Bytes
/
docker-compose.yaml
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
47
#docker-compose build --no-cache
version: "3"
services:
nginx:
image: nginx
container_name: fmrk_nginx
#restart: always
links:
- php
volumes:
- ./src/:/var/www/html/:ro
- ./nginx/:/etc/nginx/conf.d/
ports:
- 7000:80
- 7001:81
php:
build:
context: .
dockerfile: Dockerfile
container_name: fmrk_php
volumes:
- ./src:/var/www/html/
tmpfs: /tmp
#command: sh -c "composer install --ignore-platform-reqs"
depends_on:
- mariadb
links:
- mariadb
mariadb:
image: mariadb:latest
container_name: fmrk_mariadb
environment:
- MARIADB_ROOT_PASSWORD=${MARIA_DB_ROOT_PWD}
- MARIADB_USER=${MARIADB_USER}
- MARIADB_PASSWORD=${MARIA_DB_USER_PWD}
volumes:
- ./dump/:/docker-entrypoint-initdb.d
phpmyadmin:
image: phpmyadmin
container_name: fmrk_phpmyadmin
ports:
- 7020:80
links:
- mariadb:db