-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack.yml
More file actions
68 lines (64 loc) · 1.58 KB
/
stack.yml
File metadata and controls
68 lines (64 loc) · 1.58 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
version: "3.7"
services:
api:
image: 127.0.0.1:5000/stock-api
build:
context: ./server/api/
dockerfile: Dockerfile
restart: always
volumes:
- ./server/api:/code
command: bash main.sh
environment:
DB_NAME: clinica
DB_USER: centroavancado
DB_PASSWORD: abda143501.com
DB_HOST: '172.25.20.15'
DEBUG: 0
networks:
db:
ipv4_address: 172.25.20.10
backend:
ipv4_address: 172.35.10.10
depends_on:
- db
- proxy
db:
image: postgres
restart: always
environment:
POSTGRES_DB: clinica
POSTGRES_USER: centroavancado
POSTGRES_PASSWORD: abda143501.com
networks:
db:
ipv4_address: 172.25.20.15
proxy:
image: 127.0.0.1:5000/stock-proxy
build: .
restart: always
volumes:
- ./server/proxy/nginx/logs:/etc/nginx/logs:r
ports:
- 80:80
- 443:443
command: [nginx, '-g', 'daemon off;']
stdin_open: true
environment:
NGINX_PORT: 80
networks:
- backend
ports:
- 80:80
- 443:443
networks:
backend:
driver: bridge
ipam:
config:
- subnet: 172.35.10.1/16
db:
driver: bridge
ipam:
config:
- subnet: 172.25.20.1/16