-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstackFile.yml
More file actions
52 lines (49 loc) · 1.05 KB
/
stackFile.yml
File metadata and controls
52 lines (49 loc) · 1.05 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
version: '1.0'
services:
- name: db
type: postgres
version: 11
configuration: StandAlone
ports:
- 5432
username: strapi
database: strapi
userPassword: null
remoteAccess: false
deployTo:
- strapi
- name: strapi
type: docker
image: strapi/strapi
version: latest
ports:
- 1337
remoteAccess: false
env:
APP_NAME: strapi-app
DATABASE_CLIENT: postgres
DATABASE_HOST: "{{=service('db').getMasterAlias()}}"
DATABASE_PORT: "{{=service('db').getMainPort()}}"
DATABASE_NAME: "{{=service('db').get('database')}}"
DATABASE_USERNAME: "{{=service('db').get('username')}}"
DATABASE_PASSWORD: "{{=service('db').get('userPassword')}}"
volumes:
- directory: /usr/src/api/strapi-app
deployTo:
- strapi
- name: web
type: nginx
version: 1.19
ports:
- 80
- 443
remoteAccess: true
serviceFiles:
- name: strapi
deployTo:
- strapi
hosts:
- name: strapi
requirements:
cores: 1
memory: 1