-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (68 loc) · 1.49 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
version: "3.5"
volumes:
postgres_data:
driver: local
redis_data:
driver: local
services:
redis:
restart: always
image: redis:6.2.3
volumes:
- redis_data:/data
ports:
- 6379:6379
networks:
- default
postgres:
restart: always
build:
context: ./docker/postgres
dockerfile: ./Dockerfile
environment:
TZ: ${TZ}
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432
networks:
- default
php:
restart: always
build:
context: ./docker/php
dockerfile: ./Dockerfile
environment:
TZ: ${TZ}
UID: ${UID}
volumes:
- ./:/var/www/html
depends_on:
- redis
- postgres
ports:
- 9000:9000
networks:
- default
nginx:
restart: always
build:
context: ./docker/nginx
dockerfile: ./Dockerfile
environment:
TZ: ${TZ}
UID: ${UID}
volumes:
- ./:/var/www/html
depends_on:
- php
ports:
- 80:80
- 6001:6001
networks:
- default
networks:
default: