-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
47 lines (43 loc) · 965 Bytes
/
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
version: '3.7'
services:
mysql:
platform: linux/x86_64
image: mysql:8.0.26
container_name: pasteit-mysql
ports:
- 3306:3306
volumes:
- db_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
healthcheck:
test: "/usr/bin/mysql --user=root --password=root --execute \"SHOW DATABASES;\""
interval: 2s
timeout: 20s
retries: 10
mongodb:
image: mongo
container_name: pasteit-mongodb
ports:
- 27017:27017
volumes:
- data:/data
environment:
- MONGO_INITDB_ROOT_USERNAME=rootuser
- MONGO_INITDB_ROOT_PASSWORD=rootpass
pasteit-services:
image: rimonmostafiz/pasteit-services:latest
container_name: "pasteit-services"
ports:
- 8088:8088
depends_on:
mysql:
condition: service_started
mongodb:
condition: service_started
volumes:
data: { }
db_data: { }
networks:
default:
driver: bridge