-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-composeServer.yml
More file actions
83 lines (79 loc) · 1.78 KB
/
docker-composeServer.yml
File metadata and controls
83 lines (79 loc) · 1.78 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
services:
order:
image: ommrgazar315/order-service:2.0
container_name: order
restart: unless-stopped
working_dir: /var/www
volumes:
- order:/var/www
networks:
- db-network
- webserver-network
- service-network
- broker-network
depends_on:
order_db:
condition: service_healthy
healthcheck:
test: [ "CMD", "php-fpm", "-t" ]
interval: 10s
timeout: 5s
retries: 5
environment:
- DB_CONNECTION=mysql
- DB_HOST=order_db
- DB_PORT=3306
- DB_DATABASE=order_db
- DB_USERNAME=laravel
- DB_PASSWORD=order_pass
- GW_URL=https://furnisique.servehttp.com/
- PRODUCT_URI=api/products/
- OFFER_URI=api/offers/
order_db:
image: mysql:8.0
container_name: order_db
restart: unless-stopped
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
interval: 10s
timeout: 5s
retries: 5
environment:
- MYSQL_DATABASE=order_db
- MYSQL_USER=laravel
- MYSQL_PASSWORD=order_pass
- MYSQL_ROOT_PASSWORD=root_pass
volumes:
- order-db:/var/lib/mysql
networks:
- db-network
order-webserver:
image: nginx:alpine
container_name: order-webserver
restart: unless-stopped
volumes:
- ./nginx/conf.d/order.conf:/etc/nginx/conf.d/default.conf
- order:/var/www
depends_on:
order:
condition: service_healthy
networks:
- webserver-network
- service-network
networks:
db-network:
driver: bridge
webserver-network:
driver: bridge
service-network:
external: true
broker-network:
external: true
volumes:
order-db:
order:
driver: local
driver_opts:
type: none
device: /var/www/order
o: bind