-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (59 loc) · 1.6 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
version: "3.7"
services:
app:
build:
context: .
dockerfile: Dockerfile
target: app
container_name: omni-app
command: ["run-nginx-unit"]
ports:
- 8888:8080
dns:
- 8.8.8.8
- 8.8.4.4
volumes:
- nfsmount:/var/www/html:cached
depends_on:
- db
db:
build:
context: .
dockerfile: Dockerfile
target: db
container_name: omni-db
restart: always
ports:
- 5432:5432
volumes:
- ./docker/postgres/postgres.conf:/var/lib/postgresql/data/postgresql.conf:delegated
- ./var/postgres-data:/var/lib/postgresql/data:cached
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=omni
command:
- postgres
- -c
- config_file=/var/lib/postgresql/data/postgresql.conf
rabbitmq:
build:
context: .
dockerfile: Dockerfile
target: rabbitmq
container_name: omni-rabbitmq
ports:
- 5672:5672
- 15672:15672
environment:
- RABBITMQ_DEFAULT_USER=omni
- RABBITMQ_DEFAULT_PASS=omni
- RABBITMQ_DEFAULT_VHOST=omni-app
volumes:
nfsmount:
driver: local
driver_opts:
type: nfs
o: addr=host.docker.internal,rw,nolock,hard,nointr,nfsvers=3
device: ":${PWD}"