-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (38 loc) · 800 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (38 loc) · 800 Bytes
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
app:
build: ./hackathon-app
volumes:
- /var/log/hackathon/nginx:/var/log/nginx
- /var/log/hackathon/php-fpm:/var/log/php5-fpm
- /var/www/project:/var/www/project
ports:
- "80:80"
- "443:443"
links:
- redis
- pg
- mc
- mysql
redis:
image: redis:2.8
volumes:
- /var/db/redis:/data
pg:
image: sameersbn/postgresql:9.4
volumes:
- /var/db/postgresql/:/var/lib/postgresql/
environment:
DB_USER: hackathon
DB_PASS: sosecretpassword
DB_NAME: hackathon
mysql:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: mysqlsecretrootpassord
MYSQL_USER: hackathon
MYSQL_PASSWORD: hackathonpassword
MYSQL_DATABASE: hackathon
volumes:
- /var/db/mysql:/var/lib/mysql
mc:
image: memcached:latest
command: memcached -m 512