-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 1.05 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
version: '3.6'
services:
cryptopump_db:
image: andreleibovici/cryptopump_db:latest
container_name: cryptopump_db
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: password # change this
ports:
- "3306:3306"
tty: true
cap_add:
- SYS_NICE # CAP_SYS_NICE
volumes:
- db_data:/var/lib/mysql # database files
- /etc/localtime:/etc/localtime:ro # timezone
networks:
- backend
cryptopump_app:
image: andreleibovici/cryptopump:latest
container_name: cryptopump_app
restart: always
environment:
- DB_USER=root
- DB_PASS=password # change this
- DB_TCP_HOST=cryptopump_db
- DB_PORT=3306
- DB_NAME=cryptopump
ports:
- "8080-8090:8080-8090"
tty: true
volumes:
- config_data:/go/src/cryptopump/config # config files
- /etc/localtime:/etc/localtime:ro # timezone
networks:
- backend
depends_on:
- cryptopump_db
networks:
backend:
volumes:
db_data:
config_data: