-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 931 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
version: '3.3'
services:
db:
image: postgres:10.3
volumes:
- dbdata:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: invoicing
POSTGRES_USER: invoicing
deploy:
restart_policy:
condition: any
www:
image: nginx:latest
deploy:
restart_policy:
condition: any
ports:
- "8081:80"
volumes:
- .:/code
- ./docker/nginx/site.conf:/etc/nginx/conf.d/default.conf
links:
- php
php:
build: ./docker/app
deploy:
restart_policy:
condition: any
environment:
COMPOSER_ALLOW_SUPERUSER: 1
volumes:
- .:/code
- var-cache:/code/var/cache
- app-vendor:/code/vendor
- var-logs:/code/var/logs
- var-sessions:/code/var/sessions
volumes:
dbdata:
app-vendor:
var-cache:
var-logs:
var-sessions: