generated from api-platform/api-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (53 loc) · 1.35 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
version: "3.7"
networks:
moneylog-api: {}
services:
db:
image: mysql:5.7
environment:
MYSQL_DATABASE: moneylog
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
networks:
- moneylog-api
ports:
- 3306:3306
volumes:
- ./docker/db/data:/var/lib/mysql
- ./docker/db/logs:/var/log/mysql
nginx:
image: nginx:1.15-alpine
depends_on:
- php
volumes:
# Comment out the next line in production
- ./docker/nginx/conf.d:/etc/nginx/conf.d:ro
- ./public:/srv/api/public:ro
ports:
- '8082:8082'
networks:
- moneylog-api
php:
build:
context: .
dockerfile: docker/php/Dockerfile
target: api_php
depends_on:
- db
- redis
environment:
APP_ENV: dev
PHP_IDE_CONFIG: 'serverName=moneylog'
PHP_XDEBUG_ENABLED: 1 # Set 1 to enable.
XDEBUG_CONFIG: remote_host=10.1.70.231
expose:
- 9000
networks:
- moneylog-api
volumes:
- ./:/srv/api:rw,cached
redis:
image: redis:4-alpine
networks:
- moneylog-api