-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (68 loc) · 1.46 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3'
networks:
cvbp_craft:
services:
nginx:
image: nginx:latest
container_name: cvbp_nginx
ports:
- "8088:80"
- "443:443"
volumes:
- ./:/var/www/html
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./docker/nginx/cvbp.jeziordev.crt:/etc/nginx/cvbp.jeziordev.crt
- ./docker/nginx/cvbp.jeziordev.key:/etc/nginx/cvbp.jeziordev.key
depends_on:
- php
- mysql
- redis
- mailhog
networks:
- cvbp_craft
php:
build:
context: .
dockerfile: Dockerfile
container_name: cvbp_php
working_dir: /var/www/html
volumes:
- ./docker/custom.ini:/usr/local/etc/php/conf.d/custom.ini
- ./:/var/www/html
environment:
- REDIS_HOST=cvbp_redis
ports:
- "9000:9000"
networks:
- cvbp_craft
mysql:
image: mysql:5.7.22
container_name: cvbp_mysql
restart: unless-stopped
tty: true
ports:
- "4306:3306"
environment:
MYSQL_DATABASE: cvbp_db
MYSQL_USER: cvbp_user
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: secret
SERVICE_TAGS: dev
SERVICE_NAME: mysql
networks:
- cvbp_craft
redis:
image: redis:4.0
container_name: cvbp_redis
ports:
- "6382:6379"
networks:
- cvbp_craft
mailhog:
image: mailhog/mailhog
container_name: cvbp_mailhog
ports:
- 2025:1025
- 9025:8025
networks:
- cvbp_craft