forked from PrestaShop/prestonbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 1.01 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
version: '3'
services:
app:
build:
context: .
dockerfile: ./Dockerfile
environment:
# Change "dev" to "prod" in production
- APP_ENV=dev
- APP_DEBUG=true
- GH_TOKEN=putAValidGithubToken
- GH_SECURED_TOKEN=putAValidSecuredToken
volumes:
# Comment out the next line in production
- ./:/srv/prestonbot:rw
# This is for assets:install
- ./web:/srv/prestonbot/web:rw
# If you develop on Linux, comment out the following volumes to just use bind-mounted project directory from host
- /srv/prestonbot/var
- /srv/prestonbot/var/cache
- /srv/prestonbot/var/logs
- /srv/prestonbot/var/sessions
- /srv/prestonbot/vendor
networks:
- prestonbot
nginx:
image: nginx:1.11-alpine
depends_on:
- app
ports:
- '81:80'
volumes:
- ./docker/nginx/conf.d:/etc/nginx/conf.d:ro
- ./web:/srv/prestonbot/web:ro
networks:
- prestonbot
volumes:
app-web: {}
networks:
prestonbot: ~