This repository has been archived by the owner on Oct 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
132 lines (103 loc) · 2.87 KB
/
docker-compose.yaml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: '2.4'
services:
contember-engine:
image: contember/engine:1.2.0-rc.1
environment:
NODE_ENV: 'development'
CONTEMBER_PORT: '4000'
CONTEMBER_ROOT_EMAIL: 'contember@localhost'
CONTEMBER_ROOT_PASSWORD: 'contember'
CONTEMBER_ROOT_TOKEN: '0000000000000000000000000000000000000000' # openssl rand -hex 20
CONTEMBER_LOGIN_TOKEN: '1111111111111111111111111111111111111111' # openssl rand -hex 20
CONTEMBER_CONFIG_YAML: |
projectDefaults:
s3:
prefix: '%project.slug%'
DEFAULT_DB_HOST: 'postgres'
DEFAULT_DB_PORT: '5432'
DEFAULT_DB_USER: 'contember'
DEFAULT_DB_PASSWORD: 'contember'
DEFAULT_S3_ENDPOINT: 'http://localhost:1483'
DEFAULT_S3_BUCKET: 'contember'
DEFAULT_S3_REGION: ''
DEFAULT_S3_KEY: 'contember'
DEFAULT_S3_SECRET: 'contember'
DEFAULT_S3_PROVIDER: 'minio'
TENANT_DB_NAME: 'tenant'
TENANT_MAILER_HOST: 'mailhog'
TENANT_MAILER_PORT: '1025'
TENANT_MAILER_FROM: 'contember@localhost'
ports:
- '1481:4000'
healthcheck:
test: ['CMD-SHELL', 'curl --fail http://localhost:4000']
interval: 5s
timeout: 5s
retries: 10
depends_on:
postgres:
condition: service_healthy
contember-cli:
image: contember/cli:1.2.0-rc.1
user: '1000:1000'
scale: 0
environment:
CONTEMBER_API_URL: 'http://contember-engine:4000/'
CONTEMBER_API_TOKEN: '0000000000000000000000000000000000000000'
CONTEMBER_PROJECT_NAME: 'ukrajina'
working_dir: /src
volumes:
- ./:/src:cached
depends_on:
contember-engine:
condition: service_healthy
postgres:
image: postgres:14-alpine
environment:
POSTGRES_PASSWORD: 'contember'
POSTGRES_USER: 'contember'
POSTGRES_DB: 'contember'
ports:
- '1482:5432'
volumes:
- pgsql-data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U contember']
interval: 5s
timeout: 5s
retries: 10
s3:
image: minio/minio
entrypoint: /minio/s3-entrypoint.sh
command: 'server --address :1483 /data'
environment:
MINIO_ROOT_USER: 'contember'
MINIO_ROOT_PASSWORD: 'contember'
ports:
- '1483:1483' # ports must match
volumes:
- s3-data:/data
- ./docker/minio/:/minio
mailhog:
image: mailhog/mailhog
ports:
- '1484:8025'
- '1486:1025'
adminer:
image: michalhosna/adminer:4.8.0-en_v1
environment:
ADMINER_DRIVER: 'pgsql'
ADMINER_SERVER: 'postgres'
ADMINER_DB: 'contember'
ADMINER_USERNAME: 'contember'
ADMINER_PASSWORD: 'contember'
ADMINER_AUTOLOGIN: '1'
ADMINER_NAME: 'Contember'
ports:
- '1485:8080'
depends_on:
postgres:
condition: service_healthy
volumes:
pgsql-data: ~
s3-data: ~