-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (34 loc) · 955 Bytes
/
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
version: '3'
services:
unigine_test_nginx:
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./hosts:/etc/nginx/conf.d
- ./www:/var/www
- ./logs/nginx:/var/log/nginx
links:
- unigine_test_php
unigine_test_php:
build: ./images/php
links:
- unigine_test_mysql
volumes:
- ./www:/var/www
unigine_test_mysql:
image: mariadb:latest
ports:
- "3306:3306"
volumes:
- ./etc/mysql:/etc/mysql
- ./logs/mysql:/var/log/mysql
- ./mysql:/var/lib/mysql
- ./mysql-files:/var/lib/mysql-files
- ./data/url_shortener.sql:/docker-entrypoint-initdb.d/dump.sql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: url_shortener
MYSQL_USER: user
MYSQL_PASSWORD: user