-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
94 lines (94 loc) · 2.44 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: "3"
services:
nginx_hackaton:
container_name: nginx_hackaton
build:
context: ./docker/nginx
dockerfile: Dockerfile
ports:
- "${APP_PORT}:80"
networks:
- internal
volumes:
- ./:/var/www/html/
- ./storage/logs/nginx:/var/log/nginx/
php_hackaton:
container_name: php_hackaton
build:
context: ./docker/php
dockerfile: DockerfileDev
args:
user: ${USER}
uid: 1000
APP_ENV: ${APP_ENV}
depends_on:
- redis
ports:
- "9000:9000"
networks:
- internal
volumes:
- ./:/var/www/html/
- ./storage/logs/php.log:/var/log/fpm-php.www.log
expose:
- "9000"
redis:
image: redis
command: redis-server
container_name: redis_hackaton
tty: true
restart: on-failure
networks:
- internal
ports:
- "6379:6379"
mailhog:
image: mailhog/mailhog:latest
container_name: mailhog_hackaton
#restart: on-failure
ports:
- 1025:1025 # - servidor smtp
- 8025:8025 # - acesso ao web
networks:
- internal
# horizon:
# build:
# context: ./docker/php
# dockerfile: Dockerfile
# args:
# user: ${USER}
# uid: 1000
# container_name: horizon
# command: php artisan horizon
# volumes:
# - ./:/var/www/html/
# depends_on:
# - php_hackaton
# - nginx_hackaton
# - redis
# networks:
# - internal
mariadb:
image: 'mariadb:latest'
container_name: 'mariadb_hackaton'
ports:
- '${FORWARD_DB_PORT:-3306}:3306'
environment:
MYSQL_ROOT_PASSWORD: 'rootpassword'
MYSQL_DATABASE: 'laravel'
MYSQL_USER: 'laraveluser'
MYSQL_PASSWORD: 'laravelpassword'
volumes:
- 'db-data-hackaton:/var/lib/mysql'
networks:
- internal
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-p rootpassword" ]
retries: 3
timeout: 5s
networks:
internal:
driver: bridge
volumes:
db-data-hackaton:
driver: local