-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (55 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
version: "3"
networks:
default:
external:
name: adonis-app
services:
app:
build:
context: ./docker/node
user: "node"
command: bash -c 'adonis serve --dev'
restart: always
volumes:
- ./:/var/www
depends_on:
- db
- redis
environment:
PORT: 3333
HOST: 0.0.0.0
DB_HOST: db
DB_USER: adonis
DB_PORT: 5432
DB_PASSWORD: adonis
DB_DATABASE: adonis
DB_CONNECTION: pg
REDIS_HOST: redis
nginx:
build:
context: ./docker/nginx
restart: always
depends_on:
- app
ports:
- 3333:80
volumes:
- ./docker/nginx/config/nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker/nginx/config/sites-enabled:/etc/nginx/sites-enabled:ro
- ./:/var/www
db:
image: mdillon/postgis
restart: always
environment:
POSTGRES_DB: adonis
POSTGRES_USER: adonis
POSTGRES_PASSWORD: welkome
ports:
- 5444:5432
volumes:
- ./var/postgresql:/var/lib/postgresql
redis:
image: "redis:alpine"
restart: always
volumes:
- ./var/redis:/data