-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (39 loc) · 1.09 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
version: '3.3'
networks:
rubus_network:
driver: bridge
services:
rubus_api:
image: golang
restart: always
ports:
- 1323:1323
privileged: true # needed to mount the overlay (can we do better?)
volumes:
- .:/code # workspace is needed for development only, a custom golang image should be built for production...
- /tftp:/tftp
- /pxe:/pxe
- /etc/exports:/etc/exports
working_dir: /code
depends_on:
- rubus_db
- rubus_provider
command: go run .
networks:
- rubus_network
rubus_db:
image: postgres:latest
environment:
POSTGRES_DB: "rubus_db"
POSTGRES_USER: "rubus_user"
POSTGRES_PASSWORD: "rubus_password"
networks:
- rubus_network
rubus_provider:
build: ./providers/unifi/bash-cli
expose:
- 1080
extra_hosts:
- "poe-1.cluster.iiun.unine.ch:192.168.0.103"
networks:
- rubus_network