-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (34 loc) · 925 Bytes
/
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
version: '3.3'
volumes:
logs:
driver: local
slimdb:
services:
db:
image: mysql:5.7
container_name: restful-api-slim-example-database
restart: always
volumes:
- slimdb:/var/lib/mysql
ports:
- "3320:3306"
environment:
MYSQL_ROOT_PASSWORD: 123
MYSQL_DATABASE: restfulapi
MYSQL_USER: user
MYSQL_PASSWORD: 123
slim:
image: nanoninja/php-fpm
container_name: restful-api-slim-example
command: php -S 0.0.0.0:8080 -t public public/index.php
restart: always
depends_on:
- db
working_dir: /var/www
volumes:
- .:/var/www
- logs:/var/www/logs
ports:
- 8080:8080
environment:
docker: "true"