-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
116 lines (107 loc) · 2.64 KB
/
docker-compose.yml
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
version: "3.7"
services:
php:
build:
context: ./
dockerfile: sourcefiles/php-fpm/Dockerfile
image: laravel-image
container_name: testapp-php
restart: unless-stopped
working_dir: /var/www/html/testApp
volumes:
- ./:/var/www/html/testApp
- ./docker/php/local.ini:/usr/local/etc/php/conf.d/local.ini
networks:
- app-network
db:
image: postgres:10.1
container_name: testapp-db
restart: unless-stopped
tty: true
ports:
- "5432:5432"
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- dbdata:/var/lib/postgresql/data
- ./sourcefiles/postgres/postgresql.conf:/usr/share/postgresql/postgresql.conf
networks:
- app-network
nginx:
image: nginx:alpine
container_name: testapp-nginx
restart: unless-stopped
ports:
- 8000:80
volumes:
- ./:/var/www/html/testApp
- ./sourcefiles/nginx/:/etc/nginx/conf.d/
networks:
- app-network
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: testapp-rabbitmq
restart: unless-stopped
ports:
- 5672:5672
- 15672:15672
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_LOGIN}
RABBITMQ_DEFAULT_PASSWORD: ${RABBITMQ_PASSWORD}
volumes:
- ./sourcefiles/rabbitmq/etc/:/etc/rabbitmq/
- ./sourcefiles/rabbitmq/data/:/var/lib/rabbitmq/mnesia
- ./sourcefiles/rabbitmq/logs/:/var/log/rabbitmq/
networks:
- app-network
redis:
image: redis:4.0
container_name: testapp_redis
restart: unless-stopped
ports:
- "6382:6379"
networks:
- app-network
redis-commander:
container_name: testapp-redis-commander
image: rediscommander/redis-commander:latest
restart: unless-stopped
ports:
- "8081:8081"
environment:
- REDIS_HOSTS=local:redis:6379
networks:
- app-network
pgadmin:
container_name: testapp_pgadmin4
image: dpage/pgadmin4
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: admin@gmail.com
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "5050:80"
networks:
- app-network
phppgadmin:
container_name: testapp_phppgadmin
image: dockage/phppgadmin:latest
environment:
- PHP_PG_ADMIN_SERVER_HOST=db
- PHP_PG_ADMIN_SERVER_PORT=5432
- PHP_PG_ADMIN_SERVER_DEFAULT_DB=postgres
restart: unless-stopped
ports:
- "8087:80"
links:
- db
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
dbdata:
driver: local