generated from DeschutesDesignGroupLLC/invision-app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (75 loc) · 1.63 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
75
version: '3'
services:
nginx:
image: 'nginx:alpine'
ports:
- '80:80'
volumes:
- './invision:/var/www/html'
- './src:/var/www/html/applications/dmca'
- './nginx/conf.d/site.conf:/etc/nginx/conf.d/site.conf'
networks:
- invision
depends_on:
- php
- mysql
- redis
- mailhog
php:
build:
context: .
dockerfile: Dockerfile
image: invision-8.0/app
volumes:
- './invision:/var/www/html'
- './src:/var/www/html/applications/dmca'
- './php/conf.d/php.ini:/usr/local/etc/php/conf.d/100-custom.ini'
extra_hosts:
- 'host.docker.internal:host-gateway'
networks:
- invision
mysql:
image: 'mysql:8.0'
ports:
- '3306:3306'
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD:-password}'
MYSQL_DATABASE: '${DB_DATABASE:-invision}'
MYSQL_USER: '${DB_USERNAME:-invision}'
MYSQL_PASSWORD: '${DB_PASSWORD:-password}'
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- 'mysql:/var/lib/mysql'
networks:
- invision
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-p${DB_PASSWORD:-password}"]
retries: 3
timeout: 5s
redis:
image: 'redis:alpine'
ports:
- '6379:6379'
volumes:
- 'redis:/data'
networks:
- invision
healthcheck:
test: ["CMD", "redis-cli", "ping"]
retries: 3
timeout: 5s
mailhog:
image: 'mailhog/mailhog:latest'
ports:
- '1025:1025'
- '8025:8025'
networks:
- invision
networks:
invision:
driver: bridge
volumes:
mysql:
driver: local
redis:
driver: local