/
docker-compose.yml
106 lines (106 loc) · 2.6 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
104
105
106
version: '2'
services:
#---------------------------------------------
# API container
#---------------------------------------------
nofw.api:
container_name: nofw.api
build: .
restart: unless-stopped
volumes:
- ./:/app
- ./sock:/sock
- ./log/php:/var/log/php
- ./log/xdebug:/var/log/xdebug
- ./log/newrelic:/var/log/newrelic
links:
- nofw.postgres
- nofw.redis
env_file:
- .env
networks:
- nofw
#---------------------------------------------
# NGINX Container
#---------------------------------------------
nofw.nginx:
container_name: nofw.nginx
build: ./docker/nginx
restart: unless-stopped
links:
- nofw.api
volumes:
- ./:/app
- ./sock:/sock
- ./log/nginx:/var/log/nginx
ports:
- 8080:8080
networks:
- nofw
#---------------------------------------------
# Postgres Container
#---------------------------------------------
nofw.postgres:
container_name: nofw.postgres
image: onjin/alpine-postgres:9.5
restart: unless-stopped
ports:
- 5432:5432
environment:
LC_ALL: C.UTF-8
POSTGRES_USER: nofw
POSTGRES_PASSWORD: nofw
POSTGRES_DB: nofw
networks:
- nofw
#---------------------------------------------
# Redis Container
#---------------------------------------------
nofw.redis:
container_name: nofw.redis
image: sickp/alpine-redis:3.2.2
restart: unless-stopped
ports:
- 6379:6379
volumes:
- ./sock:/sock
networks:
- nofw
#-------------------------------------------------------
# Swagger Container
#-------------------------------------------------------
nofw.swagger:
container_name: nofw.swagger
image: swaggerapi/swagger-ui
restart: unless-stopped
ports:
- 4000:8080
environment:
SWAGGER_JSON: "/data/swagger.json"
links:
- nofw.api
networks:
- nofw
volumes:
- ./swagger.json:/data/swagger.json
#-------------------------------------------------------
# SonarQube Container
#-------------------------------------------------------
nofw.sonarqube:
container_name: nofw.sonarqube
image: petronetto/sonarqube-alpine
restart: unless-stopped
ports:
- 9000:9000
networks:
- nofw
volumes:
- ./:/app
- ./sonar-runner.properties:/opt/sonar-scanner/conf/sonar-runner.properties
- ./sonar.properties:/opt/sonarqube/conf/sonar.properties
#-------------------------------------------------------
# Networks
#-------------------------------------------------------
networks:
nofw:
external: true