-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-production.yml
96 lines (87 loc) · 2.35 KB
/
docker-compose-production.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
version: '3.8'
services:
# -- USUARIOS --
postgresUsers:
container_name: "postgresUsers"
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres1234
- POSTGRES_DB=usuarios
volumes:
- postgresUsers:/var/lib/postgresql/data
supertechnology-usuarios:
build: ./usuarios-api
container_name: "supertechnology-usuarios"
restart: always
environment:
- POSTGRES_CONNECTION=r2dbc:postgresql://postgres:postgres1234@postgresUsers/usuarios
- JWT_SECRET=Zanahoria_Turbopropulsada9
- KEY_STORE_PATH=/cert/server_key.p12
ports:
- '6969:6969'
depends_on:
- postgresUsers
volumes:
- ./.cert:/cert
# -- PRODUCTOS --
mariadbProductos:
container_name: "mariadbProductos"
image: mariadb:latest
restart: 'always'
environment:
MYSQL_ROOT_PASSWORD: "mariadb1234"
MYSQL_DATABASE: "productos"
MYSQL_USER: "mariadb"
MYSQL_PASSWORD: "mariadb1234"
volumes:
- db:/var/lib/mariadb/data
supertechnology-productos:
build: ./productos-api
container_name: "supertechnology-productos"
environment:
- MARIADB_CONNECTION=r2dbc:mariadb://mariadb:mariadb1234@mariadbProductos/productos
- KEY_STORE_PATH=/cert/server_key.p12
restart: always
ports:
- '6963:6963'
depends_on:
- mariadbProductos
volumes:
- ./.cert:/cert
# -- PEDIDOS --
supertechnology-pedidos:
build: ./pedidos-api
ports:
- "8080:8080"
- "8443:8443"
environment:
- PORT=8080
- SSL_PORT=8443
- KEYSTORE=/cert/server_key.p12
- KEY_ALIAS=SuperTechnology
- KEYSTORE_PASSWORD=1A2B3C4O
- PRIVATE_KEY_PASSWORD=1A2B3C4O
- JWT_SECRET=Zanahoria_Turbopropulsada9
- MONGO_CONNECTION_STRING=mongodb://root:example@mongo:27017
- MONGO_DATABASE=pedidos
- USUARIOS_URL=https://supertechnology-usuarios:6969
- PRODUCTOS_URL=https://supertechnology-productos:6963
depends_on:
- mongo
- supertechnology-productos
- supertechnology-usuarios
volumes:
- ./.cert:/cert
mongo:
image: mongo:latest
restart: always
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=example
volumes:
postgresUsers:
driver: local
db:
driver: local