generated from TheBlackJJoker/docker-for-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·57 lines (54 loc) · 1.38 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
###############################################################################
# Generated on phpdocker.io #
###############################################################################
version: '3.1'
services:
redis:
image: 'redis:alpine'
container_name: 'redis'
mysql:
image: 'mysql:8.0'
working_dir: /application
volumes:
- '.:/application'
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=database
- MYSQL_USER=admin
- MYSQL_PASSWORD=password
ports:
- '61002:3306'
networks:
- code-network
container_name: 'mysql'
webserver:
image: 'nginx:alpine'
working_dir: /application
volumes:
- '.:/application'
- './phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf'
ports:
- '61000:80'
networks:
- code-network
container_name: 'webserver'
php-fpm:
build: phpdocker/php-fpm
working_dir: /application
volumes:
- '.:/application'
- './phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/8.2/fpm/conf.d/99-overrides.ini'
networks:
- code-network
container_name: 'php'
adminer:
image: adminer
restart: always
ports:
- 8080:8080
networks:
- code-network
container_name: 'adminer'
networks:
code-network:
driver: bridge