-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
108 lines (100 loc) · 2.15 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
107
108
version: '3.6'
services:
interface:
image: registry.sme.prefeitura.sp.gov.br/curriculo/interface
container_name: interface
build:
context: ./interface
args:
- APP_ENV=production
- API_URL=0.0.0.0 #change to you ULR
networks:
- frontend
env_file: .env.interface
stdin_open: true
tty: true
restart: always
api:
image: registry.sme.prefeitura.sp.gov.br/curriculo/api
container_name: api
build:
context: ./api
dockerfile: config/docker/Dockerfile
env_file:
- ./.env.postgresql
- ./.env.api
stdin_open: true
tty: true
volumes:
- api_storage:/app/storage
- ./api:/app
links:
- postgresql
- elasticsearch
depends_on:
- postgresql
- elasticsearch
networks:
- backend
- bridge
restart: always
postgresql:
image: registry.sme.prefeitura.sp.gov.br/curriculo/database
container_name: postgresql
build:
context: .
dockerfile: ./conf/postgresql/Dockerfile
ports:
- 5432
networks:
- backend
env_file: ./.env.postgresql
volumes:
- postgresql_data:/var/lib/postgresql/data
restart: always
elasticsearch:
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4
env_file: ./.env.elasticsearch
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- backend
restart: always
nginx:
image: registry.sme.prefeitura.sp.gov.br/curriculo/nginx
container_name: nginx
build:
context: .
dockerfile: ./conf/nginx/Dockerfile
ports:
- 80:80
networks:
- frontend
- backend
- bridge
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
command: [nginx-debug, '-g', 'daemon off;']
depends_on:
- api
- interface
links:
- api
- interface
restart: always
volumes:
postgresql_data:
api_storage:
elasticsearch_data:
networks:
frontend:
backend:
bridge:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.0.1.0/24