-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (56 loc) · 1.3 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
version: '2'
services:
nginx:
image: nginx:alpine
ports:
- 81:80
volumes:
- ./server/nginx.conf:/etc/nginx/conf.d/default.conf
- ./code:/code
depends_on:
- php-fpm
php-fpm:
image: php:8-fpm-alpine
volumes:
- ./code:/code
composer:
image: composer
volumes:
- ./code:/code
- ./code:/app
command: composer install
mysql:
image: mysql
ports:
- 82:3306
environment:
MYSQL_ROOT_PASSWORD: 1234
volumes:
#- ./data/init_data/1-file.sql:/docker-entrypoint-initdb.d/1-file.sql
#- ./data/init_data/2-another-file.gz:/docker-entrypoint-initdb.d/2-another-file.gz
- ./data/mysql_data:/data
mongo:
image: mongo
ports:
- 83:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: 1234
volumes:
#- ./data/init_data/mongo/1-file.js:/docker-entrypoint-initdb.d/1-file.js
#- ./data/init_data/mongo/2-another-file.sh:/docker-entrypoint-initdb.d/2-another-file.sh
- ./data/mongo_data:/data/db
rabbit:
image: rabbitmq:3-management
ports:
- 84:15672
#Memcached
x-mutagen:
sync:
defaults:
ignore:
vcs: true
code:
alpha: "."
beta: "volume://code"
mode: "two-way-resolved"