-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (59 loc) · 1.67 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "3.7"
services:
app:
build:
context: .
dockerfile: docker/app/Dockerfile
restart: unless-stopped
user: ${LOCAL_USER}
environment:
PHP_IDE_CONFIG: serverName=${DEBUG_SERVER}
volumes:
- "./app/:/usr/src/app"
- "./docker/app/php.ini:/usr/local/etc/php/php.ini:ro"
- "./docker/app/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini:ro"
- "${CODE_SNIFFER_TMP}:/tmp"
depends_on:
- "db"
web:
image: nginx:1.17.6-alpine
restart: unless-stopped
ports:
- "${NGINX_PORT}:80"
volumes:
- "./app/public/:/usr/src/app"
- "./docker/web/default.conf:/etc/nginx/conf.d/default.conf:ro"
depends_on:
- "app"
db:
image: postgres:12.1-alpine
restart: unless-stopped
environment:
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
- "POSTGRES_USER=${POSTGRES_USER}"
- "POSTGRES_DB=${POSTGRES_DB}"
volumes:
- "dbdata:/var/lib/postgresql/data"
frontend:
image: node:13.7.0-alpine3.11
restart: "no"
working_dir: /usr/src/app
command: yarn run docker
volumes:
- "./app/:/usr/src/app"
adminer:
image: adminer:4.7.5
restart: unless-stopped
ports:
- "${ADMINER_PORT}:8080"
depends_on:
- "db"
mail:
image: jeanberu/mailcatcher:0.7.1
restart: unless-stopped
ports:
- "${MAILCATCHER_PORT}:1080"
depends_on:
- "app"
volumes:
dbdata: