-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
59 lines (48 loc) · 1.33 KB
/
compose.yaml
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
services:
nginx:
container_name: full-symfony-template_nginx
build: ./docker/nginx
restart: on-failure
volumes:
- './:/var/www/full-symfony-template'
- './docker/nginx/nginx.conf:/etc/nginx/conf.d/nginx.conf'
ports:
- "8080:80"
- "443:443"
depends_on:
- php
php:
container_name: full-symfony-template_php
build: ./docker/php
working_dir: /var/www/full-symfony-template/
ports:
- "9000:9000"
volumes:
- './:/var/www/full-symfony-template'
- '/var/www/full-symfony-template/vendor'
database-full-symfony-template:
container_name: full-symfony-template_postgresql
build: ./docker/postgres
ports:
- "5432:5432"
environment:
POSTGRES_DB: 'full_symfony_template'
POSTGRES_USER: 'root'
POSTGRES_PASSWORD: 'docker'
# volumes:
# - db-data:/var/lib/postgresql/data:rw
# - './docker/postgre/data:/var/lib/postgresql/data:rw'
healthcheck:
test: ["CMD", "pg_isready", "-d", "${POSTGRES_DB:-app}", "-U", "${POSTGRES_USER:-app}"]
timeout: 5s
retries: 5
start_period: 60s
mailer:
container_name: full-symfony-template_mailer
image: axllent/mailpit
ports:
- "1025"
- "1080"
environment:
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1