-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (42 loc) · 991 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.9"
services:
php:
image: topalbums-php-fpm
build:
context: ./
dockerfile: ./docker/Dockerfile
container_name: php
user: "1000:1000"
restart: unless-stopped
environment:
# - HOME=/app
- TZ=Europe/Paris
volumes:
- /etc/localtime:/etc/localtime:ro
- patchworks:/app/images
- ./.env:/app/.env:ro
# mount bind for dev
# - ./app:/app
# - ./docker/php.ini:/usr/local/etc/php/conf.d/php.ini
working_dir: "/app"
nginx:
image: nginxinc/nginx-unprivileged:alpine
container_name: nginx
restart: unless-stopped
depends_on:
- php
volumes:
- /etc/localtime:/etc/localtime:ro
- ./docker/nginx.conf:/etc/nginx/conf.d/default.conf
- patchworks:/app/images
# mount bind for dev
# - ./app:/app
volumes_from:
- "php"
environment:
- TZ=Europe/Paris
ports:
- 8181:8080
working_dir: "/app"
volumes:
patchworks: