-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (53 loc) · 1.33 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
version: '3.9'
volumes:
logs:
driver: local
services:
# Slim app service
app:
build: ./.docker/php
container_name: php-app
working_dir: /var/www/
environment:
docker: "true"
volumes:
- .:/var/www
- logs:/var/www/logs
depends_on:
- db
links:
- "db:database"
# Postgres service
db:
image: postgres
container_name: db
restart: always
environment:
POSTGRES_PASSWORD: POSTGRES_PASSWORD
POSTGRES_DB: backofficeapi
ports:
- "5432:5432"
# Postgres Adminer service
adminer:
image: adminer
restart: always
ports:
- 8080:8080
# Nginx service
nginx:
container_name: nginx
build:
context: ./.docker/nginx
ports:
- "8000:80"
- "443:443"
volumes:
- ./:/var/www
- ./.docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./.docker/nginx/sites/:/etc/nginx/sites-available
- ./.docker/nginx/conf.d/:/etc/nginx/conf.d
- ./logs/nginx:/var/log/nginx
depends_on:
- app
links:
- "app:php-fpm"