-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·46 lines (45 loc) · 891 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·46 lines (45 loc) · 891 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.3'
networks:
backend:
frontend:
services:
mysql:
image: mysql:5.7
container_name: mysql-vista
ports:
- '32769:3306'
networks:
- backend
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=vistachallenge
- SERVICE_TAGS=dev
- SERVICE_NAME=mysql
volumes:
- default-mysql:/data
- ./mysql:/var/lib/mysql
site:
image: nginx:stable-alpine
container_name: nginx-vista
ports:
- "80:80"
- "443:443"
volumes:
- ./:/var/www/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./nginx/ssl/:/etc/nginx/ssl
networks:
- backend
- frontend
php:
build: php-fpm
container_name: php-vista
volumes:
- ./:/var/www/html
ports:
- "9000:9000"
networks:
- backend
volumes:
default-mysql:
driver: local