This repository has been archived by the owner on Jan 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·103 lines (103 loc) · 2.91 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
##TODO: add /root/.emscripten_cache/ to volumes
version: '2'
services:
############################################################################
# Emcc compiler + node js
############################################################################
ubuntu:
container_name: 'ubuntu'
build:
context: ./
dockerfile: ./docker/ubuntu.docker
volumes:
- ./:/var/www
- ./docker/scripts/build_in_container.sh:/usr/local/bin/build_in_container
- ~/.emscripten_cache:/root/.emscripten_cache
ports:
- "35729:35729" # for livereload plugin
tty: true
############################################################################
# Nginx for run web application
############################################################################
nginx:
container_name: 'nginx'
build:
context: ./
dockerfile: ./docker/nginx.docker
volumes:
- ./:/var/www
- ./docker/nginx/ssl:/etc/nginx/ssl
ports:
- "8080:443"
############################################################################
# Api
############################################################################
# nginx:
# container_name: 'nginx'
# build:
# context: ./
# dockerfile: ./docker/nginx.docker
# volumes:
# - ./:/var/www
# - ./docker/nginx/ssl:/etc/nginx/ssl
# - ./docker/static:/var/static
# ports:
# - "8080:443"
# links:
# - php-fpm
# php-fpm:
# container_name: 'php-fpm'
# build:
# context: ./
# dockerfile: ./docker/php-fpm.docker
# volumes:
# - ./:/var/www
# - ./docker/static:/var/static
# links:
# - mysql
# - redis
# env_file:
# - ./docker/app.env
# php-cli:
# container_name: 'php-cli'
# build:
# context: ./
# dockerfile: ./docker/php-cli.docker
# volumes:
# - ./:/var/www
# - ~/.composer:/root/.composer #fixme нужно добавить глобальный путь для кеша композера в системе
# - ./docker/static:/var/static
# - ./docker/scripts/symlink.sh:/usr/local/bin/fix_symlink
# links:
# - mysql
# - redis
# env_file:
# - ./docker/app.env
# tty: true
############################################################################
# Common
############################################################################
# mysql:
# container_name: 'mysql'
# image: mysql:5.7
# env_file:
# - ./docker/app.env
# ports:
# - "33061:3306"
# redis:
# container_name: 'redis'
# image: redis:3.0
# ports:
# - "63791:6379"
# node:
# container_name: 'node'
# build:
# context: ./
# dockerfile: ./docker/node.docker
# volumes:
# - ./:/var/www
# - ~/.npm_docker_cache:/root/.npm # нужно добавить глобальный путь для кеша npm в системе
# ports:
# - "35729:35729" # for livereload plugin
# tty: true
#