-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (58 loc) · 1.3 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
version: '3.4'
networks:
dbaccess:
name: hims-dbaccess
driver: bridge
volumes:
dbdata:
name: hims-dbdata
driver: local
secrets:
hims-mariadb-rootpw:
file: ./.secrets/hims-mariadb-rootpw
hims-mariadb-pw:
file: ./.secrets/hims-mariadb-pw
services:
app:
profiles:
- all
- app
build:
context: .
dockerfile: HomeIMS.dockerfile
image: hims-app
container_name: hims-app
depends_on:
- db
networks:
- dbaccess
ports:
# TODO Find a way to differentiate between dev and prod port mapping
- 5000:80
- 5001:443
environment:
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
- ASPNETCORE_Kestrel__Certificates__Default__Password=thisisatest
volumes:
- ~/.aspnet/https:/https:ro
secrets:
- hims-mariadb-pw
db:
profiles:
- all
- backend
image: mariadb
container_name: hims-db
restart: unless-stopped
networks:
- dbaccess
secrets:
- hims-mariadb-rootpw
- hims-mariadb-pw
environment:
- MARIADB_ROOT_PASSWORD_FILE=/run/secrets/hims-mariadb-rootpw
- MARIADB_DATABASE=hims-db
- MARIADB_USER=hims
- MARIADB_PASSWORD_FILE=/run/secrets/hims-mariadb-pw
volumes:
- dbdata:/var/lib/mysql