-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
43 lines (42 loc) · 926 Bytes
/
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
version: '3.7'
services:
database:
image: mysql:latest
cap_add:
- SYS_NICE
pull_policy: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: bitcoin
MYSQL_ROOT_HOST: '%'
deploy:
resources:
limits:
memory: 12288m
reservations:
memory: 8192m
restart_policy:
condition: on-failure
ports:
- "3307:3306"
volumes:
- ./database/bitcoin.sql:/bitcoin.sql
- ./mysql_data:/var/lib/mysql/:rw
restart: unless-stopped
backend:
image: mansoonseason77/btc-backend:main
pull_policy: always
depends_on:
- database
ports:
- "5000:5000"
restart: unless-stopped
frontend:
image: mansoonseason77/bitcoinapp:main
pull_policy: always
depends_on:
- backend
ports:
- "3000:3000"
restart: unless-stopped
command: /usr/src/app/entrypoint.sh