-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml.example
More file actions
101 lines (101 loc) · 2.33 KB
/
Copy pathdocker-compose.yaml.example
File metadata and controls
101 lines (101 loc) · 2.33 KB
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
95
96
97
98
99
100
101
version: "3"
services:
nginx:
build: ./image_nginx
container_name: ema_nginx
image: image_nginx
# command: >
# bash -c "
# cp image_nginx/vhost/default.conf /etc/nginx/conf.d/default.conf &&
# nginx -g 'daemon off;'
# "
volumes:
- "./image_nginx/vhost/default.conf:/etc/nginx/conf.d/default.conf"
- ".:/var/www/html"
- "./storage/app/public:/var/www/html/storage/app/public"
- "./storage/app/public:/var/www/html/public/media"
# - "ema_assets:/var/www/html/public/storage"
working_dir: /var/www/html
ports:
- "3000:80"
expose:
- 80
links:
- php
- mysql
depends_on:
- mysql
networks:
default:
#ipv4_address: 172.1.0.2
php:
build: ./image_php
container_name: ema_php
image: image_php
#command: >
# bash -c "
# service supervisor start &&
# php-fpm
# "
# command: >
# bash -c "
# cp image_php/php.ini /usr/local/etc/php/php.ini &&
# php-fpm
# "
volumes:
- "./image_php/php.ini:/usr/local/etc/php/php.ini"
- "./image_php/laravel-worker.conf:/etc/supervisor/conf.d/laravel-worker.conf"
- ".:/var/www/html"
- "./storage/app/public:/var/www/html/storage/app/public"
- "./storage/app/public:/var/www/html/public/media"
# - "ema_assets:/var/www/html/public/storage"
working_dir: /var/www/html
links:
- mysql
depends_on:
- mysql
networks:
default:
#ipv4_address: 172.1.0.3
mysql:
image: mysql:5.7.36
container_name: ema_database
environment:
# SET PASSWORD FOR ROOT MYSQL USER
MYSQL_ROOT_PASSWORD: 'app@proj3ct'
ports:
- '3306:3306'
expose:
- 3306
volumes:
- ema_database:/var/lib/mysql
networks:
default:
#ipv4_address: 172.1.0.4
phpmyadmin:
image: phpmyadmin:latest
container_name: ema_phpmyadmin
ports:
- '3001:80'
environment:
- PMA_HOST=mysql
- PMA_PORT=3306
- UPLOAD_LIMIT=1024M
networks:
default:
#ipv4_address: 172.1.0.5
links:
- mysql
depends_on:
- mysql
volumes:
ema_code:
external: true
ema_database:
external: true
ema_assets:
external: true
networks:
default:
name: ema_network
external: true