-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
90 lines (84 loc) · 1.88 KB
/
docker-compose.yml
File metadata and controls
90 lines (84 loc) · 1.88 KB
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
version: "3"
x-logging:
&default_logging
logging:
driver: "json-file"
volumes:
# for persistence between restarts
postgres:
name: postgres
driver: local
logs:
name: logs
driver: local
cache:
name: cache
driver: local
networks:
frontend_tier:
driver: bridge
backend_tier:
driver: bridge
services:
nginx:
<<: *default_logging
image: soprun/docker-project-nginx:latest-dev
container_name: nginx
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
args:
NGINX_VERSION: $NGINX_VERSION
ports:
- "${NGINX_HOST_HTTP_PORT}:80"
- "${NGINX_HOST_HTTPS_PORT}:443"
networks:
- frontend_tier
- backend_tier
php:
<<: *default_logging
image: soprun/docker-project-php:latest-dev
container_name: php
restart: unless-stopped
tty: true
privileged: true
build:
context: .
dockerfile: ./docker/php/Dockerfile
target: dev
volumes:
- ./app:/app:rw,delegated
# If you develop on Linux, comment out the following volumes to just use bind-mounted project directory from host
- /app/var/
- /app/var/cache/
- /app/var/logs/
- /app/var/sessions/
networks:
- backend_tier
# postgres:
# <<: *default_logging
# image: "postgres:${POSTGRES_VERSION}"
# container_name: postgres
# hostname: "$POSTGRES_HOST"
# restart: always
# environment:
# - POSTGRES_DB
# - POSTGRES_USERNAME
# - POSTGRES_PASSWORD
# ports:
# - "127.0.0.1:${POSTGRES_PORT}:5432"
# volumes:
# - postgres:/var/lib/postgresql/data
# networks:
# - backend_tier
#
# redis:
# <<: *default_logging
# image: "redis:${REDIS_VERSION}"
# container_name: redis
# hostname: "$REDIS_HOST"
# restart: always
# ports:
# - "127.0.0.1:${REDIS_PORT}:6379"
# networks:
# - backend_tier