-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
42 lines (38 loc) · 970 Bytes
/
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
# This image composition adds NGINX as firewall in front of the NodeJS server
# and links them together using a software defined network.
#
# Using self signed OpenSSL certificates, do not forget to replace with real
# ones!
version: '2'
services:
proxy:
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./config/nginx/nginx.conf:/etc/nginx/conf.d/default.conf/
- ./config/nginx/.htpasswd:/etc/nginx/.htpasswd
- ./config/nginx/ssl/:/etc/nginx/ssl/
depends_on:
- mock_server
networks:
- front
mock_server:
build: .
image: schlpbch/bookingapi:develop
ports:
- "8080:8080"
networks:
- front
# Allows us to look into the running containers
# ui4docker:
# image: uifd/ui-for-docker:latest
# privileged: true
# ports:
# - "9000:9000"
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
networks:
front:
driver: bridge