forked from portabilis/i-educar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (40 loc) · 880 Bytes
/
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
version: '3.8'
services:
php:
container_name: ieducar-php
build: docker/php
links:
- postgres
- redis
environment:
CACHE_DRIVER: redis
REDIS_HOST: redis
DB_HOST: postgres
PGPASSWORD: ieducar
working_dir: /var/www/ieducar
volumes:
- ./:/var/www/ieducar
nginx:
container_name: ieducar-nginx
image: nginx:alpine
links:
- php
working_dir: /var/www/ieducar
volumes:
- ./:/var/www/ieducar
- ./docker/nginx:/etc/nginx/conf.d/
postgres:
container_name: ieducar-postgres
image: postgres:alpine
environment:
POSTGRES_DB: ieducar
POSTGRES_USER: ieducar
POSTGRES_PASSWORD: ieducar
volumes:
- postgres:/var/lib/postgresql/data
redis:
container_name: ieducar-redis
image: redis:alpine
restart: always
volumes:
postgres: