-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
78 lines (73 loc) · 2.43 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Run docker-compose up --build -d
# To see output run docker-compose logs
# To see process status run docker-compose ps
version: '2'
services:
nh-lighting:
build:
context: .
dockerfile: PADockerfile_build
command: .build_lin/debug/nh-lighting
volumes:
- "./:/perfectbuild"
- "./.packages_lin:/perfectbuild/Packages"
- "./.build_lin:/perfectbuild/.build"
- "./.package_lin.pins:/perfectbuild/Package.pins"
- "./.package_lin.resolved:/perfectbuild/Package.resolved"
working_dir: "/perfectbuild"
ports:
- 8181:8181
depends_on:
- "mariadb"
mariadb:
image: "mariadb"
restart: always
environment:
MYSQL_ROOT_PASSWORD: changethisimmediately
volumes:
- lighting-db:/var/lib/mysql
ports:
- 3306:3306
adminer:
image: adminer
restart: always
ports:
- 8080:8080
depends_on:
- "mariadb"
volumes:
lighting-db:
# Equivalent to
# docker create \
# --volume=/home/dpslwk/github/instrumentation-lighting:/perfectbuild \
# --volume=/home/dpslwk/github/instrumentation-lighting/.packages_lin:/perfectbuild/Packages \
# --volume=/home/dpslwk/github/instrumentation-lighting/.build_lin:/perfectbuild/.build \
# --volume=/home/dpslwk/github/instrumentation-lighting/.package_lin.pins:/perfectbuild/Package.pins \
# --volume=/home/dpslwk/github/instrumentation-lighting/.package_lin.resolved:/perfectbuild/Package.resolved \
# --workdir=/perfectbuild --rm -t -p 8181:8181 --name nh-lighting perfectassistant/nh-lighting .build_lin/debug/nh-lighting
#
# docker network connect instrumentation nh-lighting
#
# docker start nh-lighting
#
# Includes a MariaDB server + adminer for luck
#
# MySQL data will be stored in a volume named lighting-db
#
# For first time database setup once the containers are created, run the following:
# docker exec --tty --interactive instrumentation-lighting_mariadb bash
# mysqladmin --user root --password password
# # Set a better password
# mysqladmin create lighting --password
# mysql --user root --password
# use lighting
# CREATE USER 'homestead'@'%' IDENTIFIED BY 'secret';
# GRANT ALL PRIVILEGES ON *.* to 'homestead'@'%' WITH GRANT OPTION;
# FLUSH PRIVILEGES;
#
# Log in with adminer (http://localhost:8080) and import the database from lighting.sql
# server: mysql
# username: homestead
# password: secret
# database: lighting
#