-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
41 lines (41 loc) · 1006 Bytes
/
docker-compose.prod.yml
File metadata and controls
41 lines (41 loc) · 1006 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
services:
app:
restart: unless-stopped
build:
context: .
env_file:
- ./.env
volumes:
- ./src/:/app/src/
- ./config/:/app/config/
- ./storage/:/app/storage/
- ./public/:/app/public/
logging:
driver: 'json-file'
options:
max-size: '50m'
# networks:
# - default
nginx:
image: 'nginx:latest'
restart: unless-stopped
ports:
- '8080:80'
volumes:
- ./public:/var/www/public/
- ./nginx/conf.d/:/etc/nginx/conf.d/
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./cache/:/var/cache/
depends_on:
- app
logging:
driver: 'json-file'
options:
max-size: '50m'
# networks:
# - default
# - web
#networks:
# web:
# external: true
# name: web