-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 1013 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 1013 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
39
40
41
42
43
44
version: '3'
services:
nginx:
container_name: CocktailApiNginx
image: nginx:latest
ports:
- "80:80"
links:
- php
volumes:
- ./:/var/www/Cocktail
- ./images/nginx/vhost.conf:/etc/nginx/conf.d/Cocktail.conf
working_dir:
/var/www/Cocktail
php:
container_name: CocktailApiPHPFPM
build: ./images/php-fpm
ports:
- "9000:9000"
links:
- db
volumes:
- ./:/var/www/Cocktail
- ./images/php-fpm/custom.ini:/usr/local/etc/php/conf.d/custom.ini
working_dir:
/var/www/Cocktail
db:
container_name: CocktailApiDatabase
image: mysql:5.7
ports:
- "3306:3306"
volumes:
- data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: Cocktail
MYSQL_USER: Cocktail
MYSQL_PASSWORD: Cocktail
volumes:
data: