-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
43 lines (42 loc) · 1.02 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
services:
db:
container_name: camerappsdb
image: mysql:8.0
restart: unless-stopped
volumes:
- "${DB_VOLUME_PATH:-~/camerapps}/db:/db/data"
ports:
- 3307:3306
environment:
- MYSQL_ROOT_PASSWORD=C4meroonWin3re
- MYSQL_DATABASE=kamer
networks:
- camerapps-network
api:
container_name: camerappsapi
build:
context: .
dockerfile: backend/Dockerfile
restart: unless-stopped
volumes:
- "${API_VOLUME_PATH:-~/camerapps}/api/logs:/app/logs"
- "${API_VOLUME_PATH:-~/camerapps}/api/public:/app/public"
ports:
- "8100:8100"
environment:
- NODE_ENV=development
- SERVER_PORT=8100
- BASE_URL=http://localhost:8100
- DATABASE_URL=mysql://root:C4meroonWin3re@db:3306/kamer
- APP_NAME="Camer Apps API"
- WEB_URL=https://camerapps.com
- UPLOAD_FILE_PATH=./public/images
links:
- db
depends_on:
- db
networks:
- camerapps-network
networks:
camerapps-network:
driver: bridge