-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 1018 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 1018 Bytes
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
services:
webapp:
build: .
ports:
- "8080:8080"
environment:
DB_HOST: db
DB_NAME: kanari
DB_USER: kanari_user
DB_PASSWORD: kanari_pass
PG_HOST: postgres
PG_PORT: 5432
PG_DATABASE: kanari
PG_USER: kanari_user
PG_PASSWORD: kanari_pass
S3_ACCESS_KEY: ""
S3_SECRET_KEY: ""
S3_ENDPOINT: ""
depends_on:
- db
- postgres
db:
image: mariadb:latest
environment:
MYSQL_DATABASE: kanari
MYSQL_USER: kanari_user
MYSQL_PASSWORD: kanari_pass
MYSQL_ROOT_PASSWORD: rootpass
volumes:
- ./sql/init-mysql.sql:/docker-entrypoint-initdb.d/init.sql
- db-data:/var/lib/mysql
postgres:
image: postgres:latest
environment:
POSTGRES_DB: kanari
POSTGRES_USER: kanari_user
POSTGRES_PASSWORD: kanari_pass
volumes:
- pg-data:/var/lib/postgresql/data
- ./sql/init-postgres.sql:/docker-entrypoint-initdb.d/init.sql
volumes:
db-data:
pg-data: