-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (41 loc) · 882 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (41 loc) · 882 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
version: '3.8'
services:
db:
image: mariadb:10
cap_add:
- SYS_NICE # https://stackoverflow.com/a/55706057/489916
restart: always
environment:
- MARIADB_DATABASE=ukbot
- MARIADB_RANDOM_ROOT_PASSWORD=yes
- MARIADB_USER=ukbot
- MARIADB_PASSWORD=ukbot
ports:
- '3306:3306'
volumes:
- db:/var/lib/mysql
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
# api:
# container_name: quotes-api
# build:
# context: ./
# target: production
# image: quotes-api
# depends_on:
# - db
# ports:
# - 3000:3000
# environment:
# NODE_ENV: production
# DB_HOST: db
# DB_PORT: 3306
# DB_USER: root
# DB_PASSWORD: mauFJcuf5dhRMQrjj
# DB_NAME: quotes
# links:
# - db
# volumes:
# - ./:/src
volumes:
db:
driver: local