-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 893 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 893 Bytes
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
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
env_file:
- .env
depends_on:
- db
networks:
- appnet
restart: always
db:
image: mysql:8.0
container_name: mysql_db
volumes:
- nob-db:/var/lib/mysql # Define a named volume for the MySQL data
- ./src/db:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
MYSQL_DATABASE: nob
# ports:
# - "3306:3306"
networks:
- appnet
restart: always
cloudflared:
image: cloudflare/cloudflared:latest
container_name: cloudflared
restart: always
command: tunnel --no-autoupdate run
environment:
TUNNEL_TOKEN: ${CLOUDFLARE_TUNNEL_TOKEN}
networks:
- appnet
depends_on:
- app
networks:
appnet:
volumes:
nob-db: