-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
46 lines (42 loc) · 1.03 KB
/
docker-compose.yml
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.3'
services:
nginx:
image: nginx:latest
ports:
- "8080:80"
volumes:
- .:/var/www/html
- ./docker/nginx/config/site.conf:/etc/nginx/conf.d/default.conf
links:
- php
networks:
- pimcorenet
mysql:
image: mysql:5.7
restart: always
ports:
- "3306:3306"
command: --init-file /data/application/init.sql
volumes:
- ./docker/mysql_init.sql:/data/application/init.sql
- ./data/mysql:/var/lib/mysql
- .:/var/www/html
environment:
MYSQL_ROOT_PASSWORD: pimcore
MYSQL_DATABASE: pimcore
MYSQL_USER: pimcore
MYSQL_PASSWORD: pimcore
networks:
- pimcorenet
php:
build: ./docker/php
volumes:
- .:/var/www/html
links:
- mysql:mysql
depends_on:
- mysql
networks:
- pimcorenet
networks:
pimcorenet: