-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (41 loc) · 900 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
44
version: "3.9"
services:
db:
image: mysql:latest
volumes:
- mysql_data:/var/lib/mysql
environment:
- TZ=Asia/Kolkata
- MYSQL_ROOT_PASSWORD=sergey
- MYSQL_DATABASE=local_transaction
- MYSQL_PASSWORD=sergey
- MYSQL_USER=sergey
ports:
- "3306:3306"
networks:
- my-network-v5
restart: always
web:
build: .
environment:
- TZ=Asia/Kolkata
- DB_PORT=3306
- DB_USER=sergey
- DB_PASSWORD=sergey
- DB_NAME=local_transaction
- LOCO_DATABASE_URL=sergey:sergey@tcp(db:3306)/local_transaction?charset=utf8mb4&parseTime=True&loc=Local
command: go run main.go
volumes:
- .:/loco-transaction
ports:
- "8003:8003"
depends_on:
- db
networks:
- my-network-v5
restart: on-failure
volumes:
mysql_data:
networks:
my-network-v5:
external: true