-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
53 lines (50 loc) · 1.05 KB
/
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
48
49
50
51
52
53
volumes:
prometheus-data: {}
mysql-data:
networks:
internalnet:
driver: bridge
services:
mysqldb:
image: mysql:8.0
container_name: mysqldb
command: --default-authentication-plugin=mysql_native_password
restart: unless-stopped
volumes:
- mysql-data:/var/lib/mysql
ports:
- 3306:3306
expose:
- 3306
environment:
MYSQL_DATABASE: bitcoinscraper
MYSQL_USER: admin
MYSQL_PASSWORD: letmein
MYSQL_ROOT_PASSWORD: letmein
SERVICE_TAGS: dev
SERVICE_NAME: mysqldb
networks:
- internalnet
frontend:
depends_on:
- mysqldb
build:
context: .
dockerfile: Dockerfile
environment:
- DATABASE_URL=${DATABASE_URL}
ports:
- 3000:3000
develop:
watch:
- path: ./package.json
action: rebuild
- path: ./next.config.mjs
action: rebuild
- path: ./package-lock.json
action: rebuild
- path: .
target: /app
action: sync
networks:
- internalnet