-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.example.yml
58 lines (51 loc) · 1.03 KB
/
docker-compose.example.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
49
50
51
52
53
54
55
56
57
58
# Use root/example as user/password credentials
version: '3.1'
services:
backend:
build:
context: .
dockerfile: Dockerfile-backend
command: npm start
volumes:
- ./backend:/app/backend
- ./common:/app/common
- /app/backend/node_modules
environment:
PORT: 3000
DB_USER: log2_user
DB_HOST: db
DB_PASSWORD:
DB_SCHEMA: log2
JWT_SECRET:
GOOGLE_CLIENT_ID:
ports:
- 3001:3000
depends_on:
- db
# frontend:
# build:
# context: ./frontend
# command: npm start
# volumes:
# - ./frontend:/app
# - /app/node_modules
# ports:
# - 3000:3000
# depends_on:
# - backend
db:
image: mariadb:10
environment:
MYSQL_ROOT_PASSWORD:
MYSQL_USER: log2_user
MYSQL_PASSWORD:
MYSQL_DATABASE: log2
TZ: 'Europe/Stockholm'
ports:
- 3006:3306
volumes:
- ./db:/docker-entrypoint-initdb.d
db_webadmin:
image: adminer
ports:
- 8080:8080