-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
58 lines (53 loc) · 1.42 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
services:
app:
container_name: home_sauron_app
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/var/www/html
- ./docker/php.ini:/usr/local/etc/php/conf.d/php-dev.ini
- ${LOCAL_STORAGE_PATH}:${LOCAL_STORAGE_PATH}
depends_on:
- psql
- redis
- nginx
networks:
- home_sauron-local-network
ports:
- "3000:3000"
psql:
container_name: home_sauron_psql
image: postgres
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: app
volumes:
- home_sauron_local_pgdata:/var/lib/postgresql/data
ports:
- "54323:5432"
networks:
- home_sauron-local-network
redis:
container_name: home_sauron_redis
image: redis
command: redis-server --requirepass root --bind 0.0.0.0
ports:
- 63790:6379
networks:
- home_sauron-local-network
nginx:
container_name: home_sauron_nginx
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- .:/var/www/html
ports:
- 8000:80
networks:
- home_sauron-local-network
volumes:
home_sauron_local_pgdata:
networks:
home_sauron-local-network: