-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dist.yml
45 lines (42 loc) · 1.03 KB
/
docker-compose.dist.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
version: "3.7"
services:
web:
image: nginx:latest
ports:
- "8080:80"
volumes:
- .:/application:cached
- ./.docker/nginx/site.conf:/etc/nginx/conf.d/default.conf
- ./var/log/nginx:/var/log/nginx:delegated
depends_on:
- php
php:
build:
context: .
image: caloriary:latest
volumes:
- .:/application:cached
environment:
XDEBUG_CONFIG: "remote_host=host.docker.internal"
PHP_IDE_CONFIG: "serverName=caloriary"
DATABASE_USER: "root"
DATABASE_PASSWORD: ""
DATABASE_HOST: "mysql"
DATABASE_NAME: "caloriary"
JWT_SECRET: "myTotallySuperSecretString"
NUTRITIONIX_APP_ID: ""
NUTRITIONIX_API_KEY: ""
entrypoint: ["sh", "/wait-for-db.sh"]
command: ["php-fpm"]
depends_on:
- mysql
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: ""
MYSQL_DATABASE: "caloriary"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
volumes:
- ./.docker/mysql-data:/var/lib/mysql
ports:
- 3306:3306