-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
57 lines (53 loc) · 1.05 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
version: '3'
services:
app:
restart: always
hostname: app
container_name: stitch_app
networks:
- stitch
ports:
- 8000:8000
build:
context: .
depends_on:
- postgres
- mariadb
environment:
PSQL_DB_USER: root
PSQL_DB_PASSWORD: root
PSQL_DB_HOST: postgres
PSQL_DB_PORT: 5432
PSQL_DB_NAME: testdb
PSQL_DB_SSLMODE: disable
MARIA_DB_USER: root
MARIA_DB_PASSWORD: root
MARIA_DB_HOST: mariadb
MARIA_DB_PORT: 3306
MARIA_DB_NAME: testdb
postgres:
image: postgres:12
container_name: stitch_postgres
restart: always
ports:
- 5432:5432
networks:
- stitch
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: testdb
mariadb:
image: mariadb:10.3
container_name: stitch_mariadb
networks:
- stitch
ports:
- 3306:3306
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: user
MYSQL_PASSWORD: user
networks:
stitch: