-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
61 lines (61 loc) · 1.11 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
version: '3.8'
services:
db:
image: mysql:8.0
cap_add:
- SYS_NICE
restart: always
environment:
- MYSQL_DATABASE=afas
- MYSQL_ROOT_PASSWORD=somePass
ports:
- '3306:3306'
volumes:
- db:/var/lib/mysql
- ./scripts/initdb:/docker-entrypoint-initdb.d
- ./pkg:/pkg
afasd:
build:
dockerfile: Dockerfile
context: cmd/afasd
environment:
DBHOST: db
DBUSER: root
DBPASS: somePass
ports:
- 17545:17545
volumes:
- rootgo:/root/go
- blobstore:/srv/afasd
- ../attestation-sdk:/project
links:
- db
orig-fw-repo:
image: nginx
volumes:
- origfwimg:/srv/http
ports:
- 17546:17546
command:
- sh
- -c
- |
cat > /etc/nginx/conf.d/default.conf <<EOF
server {
listen 17546;
location / {
autoindex on;
root /srv/http;
}
}
EOF
nginx -g 'daemon off;'
volumes:
db:
driver: local
rootgo:
driver: local
blobstore:
driver: local
origfwimg:
driver: local