-
Notifications
You must be signed in to change notification settings - Fork 91
/
docker-compose.yml
83 lines (77 loc) · 1.61 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
79
80
81
82
83
version: "3"
services:
api:
image: lisa-api
build:
context: .
dockerfile: ./docker/api/Dockerfile
volumes:
- "./data/storage:/home/lisa/data/storage"
depends_on:
- rabbitmq
- worker
networks:
lisanet:
ipv4_address: 172.42.0.10
restart: on-failure
worker:
image: lisa-worker
build:
context: .
dockerfile: ./docker/worker/Dockerfile
volumes:
- "./data/storage:/home/lisa/data/storage"
devices:
- "/dev/net/tun:/dev/net/tun"
sysctls:
- "net.ipv4.ping_group_range=0 2000000"
- "net.ipv6.conf.all.disable_ipv6=0"
cap_add:
- NET_ADMIN
networks:
lisanet:
restart: on-failure
nginx:
image: lisa-nginx
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
args:
webhost: localhost:4242
ports:
- 4242:80
depends_on:
- api
networks:
lisanet:
ipv4_address: 172.42.0.12
rabbitmq:
image: rabbitmq:latest
environment:
- RABBITMQ_DEFAULT_USER=lisa
- RABBITMQ_DEFAULT_PASS=lisa
ports:
- 5672:5672
networks:
lisanet:
ipv4_address: 172.42.0.13
mariadb:
image: mariadb:latest
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_USER=lisa
- MYSQL_PASSWORD=lisa
- MYSQL_DATABASE=lisadb
- MYSQL_INITDB_SKIP_TZINFO=1
volumes:
- "./data/db:/var/lib/mysql"
networks:
lisanet:
ipv4_address: 172.42.0.14
restart: always
networks:
lisanet:
ipam:
driver: default
config:
- subnet: 172.42.0.0/24