This repository was archived by the owner on Aug 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
executable file
·133 lines (124 loc) · 3.03 KB
/
docker-compose.dev.yml
File metadata and controls
executable file
·133 lines (124 loc) · 3.03 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
version: "3"
services:
nginx:
image: "${PROJECT_NAME}/nginx:1.0"
restart: unless-stopped
build:
context: ./nginx
dockerfile: Dockerfile
container_name: "${PROJECT_NAME}_nginx"
ports:
- '80:80' #thamelmart
- '443:443' #thamelmar
volumes:
- ./projects/api.techbizz.test:/var/www
- ./nginx/log:/var/log/nginx
networks:
- backend
- frontend
admin:
container_name: "${PROJECT_NAME}_admin"
image: "${PROJECT_NAME}/admin:1.0"
build: ./projects/admin
restart: unless-stopped
volumes:
- ./projects/admin:/admin
ports:
- '3000:3000'
command: sh -c "yarn && yarn dev"
networks:
frontend:
aliases:
- admin.techbizz.test
depends_on:
- nginx
- api
store:
container_name: "${PROJECT_NAME}_store"
image: "${PROJECT_NAME}/store:1.0"
build: ./projects/store-ui
restart: unless-stopped
volumes:
- ./projects/store-ui:/store
ports:
- '3001:3001'
command: sh -c "yarn && yarn dev --port=3001"
networks:
frontend:
aliases:
- store.techbizz.test
depends_on:
- nginx
- api
api:
container_name: "${PROJECT_NAME}_php"
image: "${PROJECT_NAME}/api:1.0"
build: ./projects/api.techbizz.test
restart: unless-stopped
environment:
PHP_MEMORY_LIMIT: "${PHP_MEMORY_LIMIT}"
PHP_IDE_CONFIG: serverName=gravity
XDEBUG_CONFIG: idekey=PHPSTORM
COMPOSER_MEMORY_LIMIT: '-1'
volumes:
- ./projects/api.techbizz.test/conf.d/php.ini:/usr/local/etc/php/php.ini
- ./projects/api.techbizz.test/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./projects/api.techbizz.test/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
- ./projects/api.techbizz.test:/var/www
- ./packages:/var/packages
ports:
- '9000:9000'
networks:
backend:
aliases:
- api.techbizz.test
depends_on:
- mysql
- redis
- nginx
mysql:
container_name: "${PROJECT_NAME}_mysql"
image: "${PROJECT_NAME}/mysql:1.0"
build: ./mysql
volumes:
- ~/.${PROJECT_NAME}/data/mysql:/var/lib/mysql
- ${MYSQL_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: root
TZ: ${TIMEZONE}
networks:
- backend
pma:
image: phpmyadmin/phpmyadmin
container_name: "${PROJECT_NAME}_pma"
links:
- mysql
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_ARBITRARY: 1
restart: always
ports:
- "8090:80"
networks:
- backend
depends_on:
- mysql
redis:
build: ./redis
container_name: "${PROJECT_NAME}_redis"
image: "${PROJECT_NAME}/redis:1.0"
volumes:
- "~/.${PROJECT_NAME}/data/redis:/data"
ports:
- "${REDIS_PORT}:6379"
networks:
- backend
networks:
frontend:
driver: bridge
backend:
driver: bridge