-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
84 lines (76 loc) · 1.79 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
version: "3.5"
services:
php:
build: docker/php
hostname: 'projectaanvraag.local'
container_name: php.projectaanvraag
volumes:
- .:/var/www/html:cached
working_dir: /var/www/html
ports:
- '80:80'
networks:
projectaanvraag:
aliases:
- projectaanvraag
mysql:
image: 'mysql/mysql-server:8.0'
container_name: mysql.projectaanvraag
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
volumes:
- 'projectaanvraag-mysql:/var/lib/mysql'
ports:
- '3307:3306'
networks:
projectaanvraag:
aliases:
- mysql
redis:
image: 'redis:alpine'
container_name: redis.projectaanvraag
ports:
- '${FORWARD_REDIS_PORT:-6380}:6379'
volumes:
- 'projectaanvraag-redis:/data'
networks:
- projectaanvraag
healthcheck:
test: [ 'CMD', 'redis-cli', 'ping' ]
retries: 3
timeout: 5s
mongodb:
image: 'mongo:3.6'
container_name: mongodb.projectaanvraag
ports:
- '${FORWARD_REDIS_PORT:-27018}:27017'
volumes:
- 'projectaanvraag-mongodb:/data/db'
networks:
- projectaanvraag
rabbitmq:
image: public.ecr.aws/y2o7k5u2/udb3/rabbitmq:latest
hostname: 'rabbitdocker'
volumes:
- 'projectaanvraag-rabbitmq:/var/lib/rabbitmq/mnesia'
container_name: rabbitmq.projectaanvraag
ports:
- 5673:5672
- 15673:15672
networks:
- projectaanvraag
networks:
projectaanvraag:
driver: bridge
volumes:
projectaanvraag-redis:
driver: local
projectaanvraag-mysql:
driver: local
projectaanvraag-mongodb:
driver: local
projectaanvraag-rabbitmq:
driver: local