forked from Acrecio/angular-symfony
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 761 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 761 Bytes
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
application:
build: back-end
volumes:
- "./back-end:/var/www"
links:
- database
client:
build: front-end
volumes:
- "./front-end:/app"
links:
- nginx-back
database:
image: postgres:10
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: symfony_dev
nginx-front:
image: nginx
ports:
- 8080:8080
links:
- client
volumes:
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./config/nginx/angular.conf:/etc/nginx/conf.d/default.conf
nginx-back:
image: nginx
ports:
- 8000:8000
links:
- application
volumes:
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./config/nginx/symfony.conf:/etc/nginx/conf.d/default.conf