-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (36 loc) · 939 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
40
version: '2'
#volumes:
# db-data:
services:
nginx:
container_name: nginx
image: mikeymike/learning-docker-nginx
build:
context: ./
dockerfile: app.nginx.dockerfile
working_dir: /var/www
ports:
- "80:80"
php:
container_name: php
image: mikeymike/learning-docker-php
build:
context: ./
dockerfile: app.php.dockerfile
volumes:
- "${HOME}/.composer:/root/.composer"
- "${HOME}/.ssh:/root/.ssh"
working_dir: /var/www
ports:
- 9000
# db:
# container_name: m2-docker-test-db
# image: mysql:5.6
# volumes:
# - db-data
# - "./.docker/db/:/docker-entrypoint-initdb.d/"
# ports:
# - "3306:3306"
# restart: unless-stopped
# env_file:
# - ./.docker/production.env