-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
57 lines (57 loc) · 1.45 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
version: "3"
services:
nginx_labs_api:
container_name: nginx_labs_api
build:
context: ./docker/nginx
dockerfile: Dockerfile
ports:
- "${APP_PORT}:80"
networks:
- internal
volumes:
- ./:/var/www/html/
- ./storage/logs/nginx:/var/log/nginx/
php_labs_api:
container_name: php_labs_api
build:
context: ./docker/php
dockerfile: Dockerfile
args:
user: ${USER}
uid: 1000
APP_ENV: ${APP_ENV}
networks:
- internal
volumes:
- ./:/var/www/html/
- ./storage/logs/php.log:/var/log/fpm-php.www.log
expose:
- "9000"
# mysql:
# image: 'mysql/mysql-server:8.0'
# container_name: 'db-labs-api'
# ports:
# - '${FORWARD_DB_PORT:-3306}:3306'
# environment:
# MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
# MYSQL_ROOT_HOST: "%"
# MYSQL_DATABASE: '${DB_DATABASE}'
# MYSQL_USER: '${DB_USERNAME}'
# MYSQL_PASSWORD: '${DB_PASSWORD}'
# MYSQL_ALLOW_EMPTY_PASSWORD: 1
# volumes:
# - 'db-data-labs_api:/var/lib/mysql'
# # - './vendor/laravel/sail/database/mysql/create-testing-database.sh:/docker-entrypoint-initdb.d/10-create-testing-database.sh'
# networks:
# - internal
# healthcheck:
# test: [ "CMD", "mysqladmin", "ping", "-p${DB_PASSWORD}" ]
# retries: 3
# timeout: 5s
networks:
internal:
driver: bridge
volumes:
db-data-labs-api:
driver: local