-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (56 loc) · 1.14 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
version: '3.9'
services:
nginx:
build:
context: ./docker/nginx
dockerfile: Dockerfile
volumes:
- "${PROJECT_ROOT_PATH:-./app}:/app"
ports:
- "${NGINX_HOST_PORT:-80}:80"
depends_on:
- php-fpm
networks:
- textmagic-net
php-fpm:
build:
context: ./docker/php-fpm
dockerfile: Dockerfile
volumes:
- "${PROJECT_ROOT_PATH:-./app}:/app"
depends_on:
- postgres
networks:
- textmagic-net
php-cli:
build:
context: docker/php-cli
dockerfile: Dockerfile
user: www-data
volumes:
- "${PROJECT_ROOT_PATH:-./app}:/app"
environment:
- "COMPOSER_ALLOW_SUPERUSER=1"
depends_on:
- postgres
tty: true
networks:
- textmagic-net
postgres:
image: postgres
environment:
- "POSTGRES_PASSWORD=${DB_PASSWORD}"
- "POSTGRES_USER=${DB_USERNAME}"
- "POSTGRES_DB=${DB_NAME}"
ports:
- "${POSTGRES_HOST_PORT:-5432}:5432"
networks:
- textmagic-net
volumes:
textmagic-pgsql:
networks:
textmagic-net:
ipam:
driver: default
config:
- subnet: "192.168.96.0/24"