-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (43 loc) · 878 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (43 loc) · 878 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
47
48
version: '3.8'
services:
php:
build:
context: .
dockerfile: docker/Dockerfile
container_name: assinafy-sdk-php
working_dir: /var/www
volumes:
- ./:/var/www
networks:
- assinafy-network
depends_on:
- mysql
mysql:
image: mysql:8.0
container_name: assinafy-sdk-mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: assinafy_test
ports:
- "3306:3306"
volumes:
- mysql-data:/var/lib/mysql
networks:
- assinafy-network
nginx:
image: nginx:latest
container_name: assinafy-sdk-nginx
ports:
- "8080:80"
volumes:
- ./:/var/www
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
- assinafy-network
depends_on:
- php
networks:
assinafy-network:
driver: bridge
volumes:
mysql-data: