-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-dev.yml
61 lines (55 loc) · 1.31 KB
/
docker-compose-dev.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: '3'
services:
whatshafiz_php-fpm:
build:
context: './src'
container_name: whatshafiz_php-fpm
stdin_open: true
tty: true
volumes:
- ./src:/var/www
networks:
- whatshafiz
environment:
- DB_DATABASE=${DB_DATABASE}
- DB_USERNAME=${DB_ROOT_USERNAME}
- DB_PASSWORD=${DB_ROOT_PASSWORD}
whatshafiz_mysql:
image: "${DOCKER_MYSQL:-mysql:8.0.36}"
container_name: whatshafiz_mysql
ports:
- "${FORWARD_DB_PORT:-3306}:3306"
volumes:
- whatshafiz-mysql-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_PASSWORD=${DB_ROOT_PASSWORD}
networks:
- whatshafiz
redis:
image: redis:5.0.5
container_name: whatshafiz_redis
ports:
- '${FORWARD_REDIS_PORT:-6379}:6379'
networks:
- whatshafiz
whatshafiz-nginx:
image: nginx:alpine
container_name: whatshafiz_nginx
stdin_open: true
tty: true
ports:
- "${FORWARD_NGINX_HTTP_PORT:-80}:80"
- "${FORWARD_NGINX_HTTPS_PORT:-443}:443"
volumes:
- ./src:/var/www/
- ./src/docker/nginx/conf.d/:/etc/nginx/conf.d/
networks:
- whatshafiz
volumes:
whatshafiz-mysql-data:
external: true
networks:
whatshafiz:
driver: bridge