-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
executable file
·64 lines (58 loc) · 1.15 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
version: "3.7"
services:
nginx:
container_name: richinme_nginx
build:
context: .
dockerfile: docker/nginx/Dockerfile
ports:
- 80:80
volumes:
- ./:/var/www/html
- ./docker/configs/nginx/conf.d/:/etc/nginx/conf.d/
links:
- php-fpm
depends_on:
- php-fpm
networks:
- richinme-network
php-fpm:
container_name: richinme_php
build:
context: .
dockerfile: docker/php-fpm/Dockerfile
ports:
- 9011:9001
- 9012:9002
volumes:
- ./:/var/www/html
networks:
- richinme-network
postgres:
container_name: richinme_postgres
build:
context: ./docker/postgres
volumes:
- ./docker/postgres/data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_DB=
- POSTGRES_USER=
- POSTGRES_PASSWORD=
networks:
- richinme-network
restart: always
redis:
container_name: richinme_redis
hostname: richinme_redis
image: redis:6.2.2-alpine
restart: always
ports:
- "6377:6377"
networks:
richinme-network:
driver: bridge
volumes:
postgres:
driver: local