-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose_.yml
More file actions
62 lines (51 loc) · 1.15 KB
/
docker-compose_.yml
File metadata and controls
62 lines (51 loc) · 1.15 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
version: '2'
services:
nginx:
image: nginx:latest
restart: always
ports:
- "8080:80"
volumes:
- ./public:/var/www/html/public
- ./app/static:/var/www/html/app/static/
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./logs/nginx:/var/log/nginx
links:
- phalcon
- mongo-express
- mongo
mongo:
build: ./db
restart: always
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: 123456
volumes:
- ./dbbase:/data/db
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_AUTH_USERNAME: root
ME_CONFIG_MONGODB_AUTH_PASSWORD: 123456
links:
- mongo
phalcon:
build:
context: .
dockerfile: ./docker/php/Dockerfile
restart: always
ports:
- "9000:9000"
volumes:
- ./:/var/www/html/
- ./public:/var/www/html/public
- ./vendor:/var/www/html/vendor
- ./composer.json:/var/www/html/composer.json
redis:
image: redis:alpine
restart: always
links:
- phalcon