forked from MIKEINTOSHSYSTEMS/DHIS2HEAT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (62 loc) · 1.91 KB
/
docker-compose.yml
File metadata and controls
68 lines (62 loc) · 1.91 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
# docker-compose -p dhis2heat up -d
# docker-compose -p dhis2heat -f docker-compose.yml up -d
# docker-compose -p dhis2heat down --volumes --rmi all
# docker-compose -p dhis2heat -f docker-compose.yml down --volumes --rmi all
# docker-compose -p dhis2heat down && docker-compose -p dhis2heat up -d
version: "3.7"
services:
shiny:
container_name: moheatpdhis2
build:
context: ./
dockerfile: Dockerfile.shiny
ports:
# - "3838:3838"
- "3939:3939"
# - "3939"
# - "3939:80"
# - "127.0.0.1:3939:3939" # Only expose to localhost
# - "127.0.0.1:3939:80" # Only expose to localhost
environment:
- SHINY_PROXY=true
- VIRTUAL_HOST=heat.merqconsultancy.org
- VIRTUAL_PORT=3939
- DISABLE_HTTP2=true # Important for WebSocket compatibility
# - USER: shiny
# - PASSWORD: shiny_password
# environment variables for proxy awareness
# - SHINY_PROXY: "true"
# - VIRTUAL_HOST: "heat.merqconsultancy.org" # change this if it is differrent
volumes:
- ./:/srv/shiny-server
- ./shiny-server.conf:/etc/shiny-server/shiny-server.conf
networks:
moh_heatp:
ipv4_address: 192.168.17.7
nginx_proxy:
# Typically, we may refer to an image to pull from here. This is a sample, so there is none.
# image: image_name
# Build Dockerfile
build: ./nginx_app
# Name of the container
container_name: moheatpdhis2proxy
restart: always
# Mapping ports 80 and 443 on your machines infrastructure.
# Typically, your port for transfer control protocol is 22/tcp is SSH, 80/tcp is HTTP, and 443/tcp is HTTPS.
ports:
- 8939:80
- 9443:443
# Dependencies
depends_on:
- shiny
networks:
moh_heatp:
ipv4_address: 192.168.17.9
volumes:
shiny-server.conf:
networks:
moh_heatp:
ipam:
driver: default
config:
- subnet: 192.168.17.0/24