-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
31 lines (31 loc) · 941 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
version: '2'
services:
web:
image: 10kpizza-dev
container_name: 10kpizza
ports:
- "80:80"
volumes:
- ./app:/var/www/app
- ./api:/var/www/app/api
- ./config/config.php:/var/www/config/config.php
- ./src:/var/www/src
- ./vendor:/var/www/vendor
- ./log/apache2:/var/log/apache2
environment:
PROGRAM_ENVIRONMENT: '${PROGRAM_ENVIRONMENT}'
AWS_ACCESS_KEY_ID: '${TENKPIZZA_AWS_ACCESS_KEY_ID}'
AWS_SECRET_ACCESS_KEY: '${TENKPIZZA_AWS_SECRET_ACCESS_KEY}'
TENKPIZZA_DB_HOST: '${TENKPIZZA_DB_HOST}'
TENKPIZZA_DB_NAME: '${TENKPIZZA_DB_NAME}'
TENKPIZZA_DB_USER: '${TENKPIZZA_DB_USER}'
TENKPIZZA_DB_PASS: '${TENKPIZZA_DB_PASS}'
links:
- db:database
db:
image: 10kpizza-db-dev
container_name: 10kpizza-db
volumes:
- ./log/postgres:/var/log/postgresql
volumes_from:
- container:10kpizza-db-data