-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 1.09 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
version: '3.4'
services:
db:
platform: linux/x86_64
image: mysql:5.7
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 1
MYSQL_DATABASE: shoppinglistserver
MYSQL_USER: ShoppingListDBUser
MYSQL_PASSWORD: ${DB_PASSWORD}
volumes:
- dbdata:/var/lib/mysql
- ./_MySQL_Init_Script:/docker-entrypoint-initdb.d
restart: always
shoppinglistserver:
depends_on:
- db
image: shoppinglistserver
build:
context: .
dockerfile: ./Dockerfile
volumes: # mount the ssl certificate files folder in the docker image
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
- shoppingdata:/app/data # must be the same folder name as DataStorageFolder (appsettings.json)
- type: bind
source: /etc/letsencrypt/kestrel/ # this folder contains the certificat files
target: /app/auth/cert-files/
- type: bind
source: /etc/letsencrypt/apple-keys/ # this folder contains apple keys
target: /app/auth/
ports:
- 5678:5678
volumes:
dbdata:
shoppingdata: