-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.ci.yml
45 lines (45 loc) · 1.29 KB
/
docker-compose.ci.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
services:
node:
container_name: chubbyts-petstore-node
hostname: chubbyts-petstore-node
build:
dockerfile: ./docker/production/node/Dockerfile
context: ./
environment:
NODE_ENV: production
MONGO_URI: 'mongodb://petstore:KVKtkrTHhKuTJTor8pCP@mongo:27017/petstore?authMechanism=DEFAULT&authSource=admin'
SERVER_HOST: '0.0.0.0'
SERVER_PORT: '1234'
depends_on:
- mongo
mongo:
container_name: chubbyts-petstore-mongo
hostname: chubbyts-petstore-mongo
image: mongo:6.0.11
environment:
MONGO_INITDB_ROOT_USERNAME: petstore
MONGO_INITDB_ROOT_PASSWORD: KVKtkrTHhKuTJTor8pCP
swagger-ui:
container_name: chubbyts-petstore-swagger-ui
hostname: chubbyts-petstore-swagger-ui
image: swaggerapi/swagger-ui:v5.10.3
environment:
BASE_URL: /swagger
URLS: '[ { url: "/openapi" } ]'
nginx:
container_name: chubbyts-petstore-nginx
hostname: chubbyts-petstore-nginx
image: nginx:1.21.6
environment:
SERVER_PORT: '443'
NODE_SERVER_HOST: 'node'
NODE_SERVER_PORT: '1234'
SWAGGER_SERVER_HOST: 'swagger-ui'
SWAGGER_SERVER_PORT: '8080'
ports:
- '443:443'
volumes:
- ./docker/development/nginx:/etc/nginx/templates
depends_on:
- node
- swagger-ui