This repository was archived by the owner on Nov 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (52 loc) · 1.38 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (52 loc) · 1.38 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
version: "2.1"
services:
code:
build:
dockerfile: ./config/docker/code/Dockerfile
context: .
args:
- APP_ENV=${APP_ENV:-prod}
container_name: blog_code
depends_on:
- pgsql
nginx:
build:
dockerfile: ./config/docker/nginx/Dockerfile
context: .
container_name: blog_nginx
restart: always
volumes_from:
- code:ro
depends_on:
- code
links:
- fpm
ports:
- ${NGINX_PORT:-88}:80
fpm:
build:
dockerfile: ./config/docker/fpm/Dockerfile
context: .
environment:
- APP_ENV=${APP_ENV:-prod}
- POSTGRES_USER=${POSTGRES_USER:-root}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-root}
- POSTGRES_DB=${POSTGRES_DB:-blog}
container_name: blog_php
restart: always
depends_on:
- code
volumes_from:
- code
links:
- pgsql
pgsql:
image: fintrace/postgres-uuid
container_name: blog_postgres
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_USER=${POSTGRES_USER:-root}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-root}
- POSTGRES_DB=${POSTGRES_DB:-blog}