-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (48 loc) · 905 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
47
48
49
50
51
52
53
version: '3'
services:
postgres:
image: postgres:11.3
ports:
- 127.9.1.1:54321:5432
volumes:
- postgres:/var/lib/postgresql/data
env_file:
- .env
environment:
- POSTGRES_PASSWORD=${DB_PASSWORD}
networks:
internal-network:
aliases:
- ${COMPOSE_PROJECT_NAME}-postgres
nginx:
build: .docker/nginx
ports:
- 127.9.1.1:80:80
volumes:
- ${PWD-.}:/app
links:
- php
env_file:
- .env
networks:
internal-network:
aliases:
- ${COMPOSE_PROJECT_NAME}-nginx
php:
build: .docker/php
volumes:
- ${PWD-.}:/app
links:
- postgres
working_dir: /app
env_file:
- .env
networks:
internal-network:
aliases:
- ${COMPOSE_PROJECT_NAME}-php
volumes:
postgres:
networks:
internal-network:
external: true