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.prod.yml
More file actions
executable file
·114 lines (105 loc) · 2.36 KB
/
docker-compose.prod.yml
File metadata and controls
executable file
·114 lines (105 loc) · 2.36 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
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:/var/www
- ./nginx/log:/var/log/nginx
networks:
techbizz:
aliases:
- api.techbizz.test
depends_on:
- api
- admin
- store
admin:
container_name: "${PROJECT_NAME}_admin"
image: "${PROJECT_NAME}/admin:1.1"
build:
context: './projects/admin'
dockerfile: 'Dockerfile.prod'
restart: unless-stopped
ports:
- '3000:3000'
networks:
- techbizz
store:
container_name: "${PROJECT_NAME}_store"
image: "${PROJECT_NAME}/store:1.1"
build:
context: ./projects/store-ui
dockerfile: Dockerfile.prod
restart: unless-stopped
ports:
- '3001:3001'
networks:
- techbizz
api:
container_name: "${PROJECT_NAME}_api"
image: "${PROJECT_NAME}/api:1.0"
build: ./projects/api.techbizz.test
restart: unless-stopped
environment:
PHP_MEMORY_LIMIT: "${PHP_MEMORY_LIMIT}"
COMPOSER_MEMORY_LIMIT: '-1'
volumes:
- ./projects/api.techbizz.test:/var/www/api.techbizz.test
ports:
- '9000:9000'
networks:
- techbizz
depends_on:
- mysql
- pma
- redis
mysql:
container_name: "${PROJECT_NAME}_mysql"
image: "${PROJECT_NAME}/mysql:1.0"
build: ./mysql
volumes:
- "~/.kuber/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:
- techbizz
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:
- techbizz
redis:
build: ./redis
container_name: "${PROJECT_NAME}_redis"
image: "${PROJECT_NAME}/redis:1.0"
volumes:
- "~/.kuber/data/redis:/data"
ports:
- "${REDIS_PORT}:6379"
networks:
- techbizz
networks:
techbizz:
driver: bridge