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