-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
129 lines (118 loc) · 3.06 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
services:
redoc:
image: redocly/redoc
container_name: redoc
restart: unless-stopped
environment:
SPEC_URL: "https://omlpi-api.appcivico.com/openapi.yaml"
ports:
- "172.17.0.1:2004:80"
db:
image: postgres:16
restart: unless-stopped
container_name: omlpi_pg_db
hostname: db
environment:
POSTGRES_USER: "${POSTGRESQL_USER}"
POSTGRES_DB: "${POSTGRESQL_DBNAME}"
POSTGRES_PASSWORD: "${POSTGRESQL_PASSWORD}"
volumes:
- ${DATA_PATH}/omlpi_pg_db:/var/lib/postgresql/data
networks:
- omlpi_network
strapi_db:
image: postgres:16
restart: unless-stopped
container_name: strapi_pg_db
hostname: strapi_db
environment:
POSTGRES_USER: "${STRAPI_POSTGRESQL_USER}"
POSTGRES_DB: "${STRAPI_POSTGRESQL_DBNAME}"
POSTGRES_PASSWORD: "${STRAPI_POSTGRESQL_PASSWORD}"
volumes:
- ${DATA_PATH}/strapi_pg_db:/var/lib/postgresql/data
networks:
- omlpi_network
strapi:
image: strapi/strapi:3.3.3-node14
container_name: omlpi_strapi
restart: unless-stopped
environment:
ADMIN_JWT_SECRET: "${ADMIN_JWT_SECRET}"
DATABASE_CLIENT: postgres
DATABASE_HOST: strapi_db
DATABASE_PORT: "5432"
DATABASE_USERNAME: "${STRAPI_POSTGRESQL_USER}"
DATABASE_NAME: "${STRAPI_POSTGRESQL_DBNAME}"
DATABASE_PASSWORD: "${STRAPI_POSTGRESQL_PASSWORD}"
volumes:
- ${STRAPI_SRC}:/srv/app/
ports:
- "172.17.0.1:2001:1337"
networks:
- omlpi_network
cms_search:
container_name: cms_search
build:
context: ./omlpi-cms-search
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "172.17.0.1:2003:1337"
environment:
DATABASE_URL: "postgresql://$POSTGRESQL_USER:$POSTGRESQL_PASSWORD@db:5432/$POSTGRESQL_DBNAME"
networks:
- omlpi_network
depends_on:
- db
logging:
driver: "json-file"
options:
max-file: "2"
max-size: 100MB
api:
container_name: omlpi_api
# ver build-container.sh e README.md
image: appcivico/omlpi_api
restart: unless-stopped
ports:
- "172.17.0.1:2002:8080"
volumes:
# mantém o container atualizado com o código fonte, como se fosse PHP
- ./omlpi-api:/src
- ${DATA_PATH}/api_logs:/data
environment:
API_PORT: "8080"
API_WORKERS: "3"
POSTGRESQL_HOST: db
POSTGRESQL_PORT: 5432
POSTGRESQL_USER: "${POSTGRESQL_USER}"
POSTGRESQL_PASSWORD: "${POSTGRESQL_PASSWORD}"
POSTGRESQL_DBNAME: "${POSTGRESQL_DBNAME}"
networks:
- omlpi_network
depends_on:
- db
logging:
driver: "json-file"
options:
max-file: "2"
max-size: 100MB
www:
container_name: www
build:
context: ./omlpi-www
dockerfile: Dockerfile
networks:
- omlpi_network
restart: unless-stopped
ports:
- "${BIND_INTERFACE}:${SMAE_WWW_LISTEN}:80"
logging:
driver: "json-file"
options:
max-file: "2"
max-size: 1MB
networks:
omlpi_network:
driver: bridge