-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
executable file
·108 lines (100 loc) · 2.21 KB
/
docker-compose.yml
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
version: '3'
services:
bible-ui:
image: rkeplin/bible-angularjs-ui:latest
restart: always
ports:
- 8082:80
environment:
- URL=${URL}
- API_URL=${API_URL}
- APP_API_URL=${APP_API_URL}
volumes:
- .:/var/www/html
networks:
- net1
php-api:
image: rkeplin/bible-php-api:latest
# build: ../bible-php-api
restart: always
ports:
- 8083:80
depends_on:
- bible-db
- mongo
- redis
environment:
- ALLOW_ORIGIN=${ALLOW_ORIGIN}
- SERVER_ADMIN=${SERVER_ADMIN}
- COOKIE_DOMAIN=${COOKIE_DOMAIN}
- APP_ENV=${BIBLE_APP_ENV}
- DB_NAME=${BIBLE_DB_NAME}
- DB_HOST=${BIBLE_DB_HOST}
- DB_USER=${BIBLE_DB_USER}
- DB_PASS=${BIBLE_DB_PASS}
- REDIS_SERVER=${REDIS_SERVER}
- MONGO_HOST=mongo
- MONGO_DB=${MONGO_DB}
- MONGO_USER=${MONGO_USER}
- MONGO_PASS=${MONGO_PASS}
networks:
- net1
go-api:
image: rkeplin/bible-go-api:latest
ports:
- 8084:3000
environment:
- ES_URL=${ES_URL}
- DB_NAME=${BIBLE_DB_NAME}
- DB_HOST=${BIBLE_DB_HOST}
- DB_USER=${BIBLE_DB_USER}
- DB_PASS=${BIBLE_DB_PASS}
depends_on:
- bible-db
- bible-es
networks:
- net1
bible-db:
image: rkeplin/bible-mariadb:latest
restart: always
environment:
- MYSQL_ROOT_PASSWORD=${BIBLE_DB_ROOT_PASS}
- MYSQL_USER=${BIBLE_DB_USER}
- MYSQL_PASSWORD=${BIBLE_DB_PASS}
- MYSQL_DATABASE=${BIBLE_DB_NAME}
volumes:
- bible-db:/var/lib/mysql
networks:
- net1
bible-es:
image: rkeplin/bible-es:v2
restart: always
environment:
- "discovery.type=single-node"
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"
networks:
- net1
mongo:
image: mongo:4.2.2-bionic
restart: always
ports:
- 27017:27017
environment:
- MONGO_INITDB_DATABASE=${MONGO_DB}
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USER}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASS}
volumes:
- mongo-db:/data/db
networks:
- net1
redis:
image: redis:5.0.7
restart: always
networks:
- net1
volumes:
bible-db:
mongo-db:
redis:
networks:
net1: