-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
64 lines (59 loc) · 1.43 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
version: '3.8'
networks:
stinger-cms:
driver: bridge
services:
nginx:
image: nginx:stable-alpine
container_name: stinger-nginx
ports:
- 7003:7003
volumes:
- ./docker/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
- ./docker/nginx/logs:/var/log/nginx
- ./src:/app
networks:
- stinger-cms
depends_on:
- php
postgres:
image: postgres:14-alpine3.15
container_name: stinger-postgres
ports:
- "5437:5432"
restart: unless-stopped
tty: true
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE}
DB_DATABASE_TESTING: ${DB_DATABASE_TESTING}
volumes:
- ./docker/postgres/pg-data:/var/lib/postgresql/data
- ./docker/postgres:/docker-entrypoint-initdb.d
networks:
- stinger-cms
php:
build:
context: .
dockerfile: Dockerfile
container_name: stinger-php
env_file:
- ./src/.env
environment:
DATABASE_URL: ${DB_CONNECTION}://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_DATABASE}
volumes:
- ./src:/app
networks:
- stinger-cms
composer:
image: composer:latest
container_name: stinger-composer
volumes:
- ./src:/app
depends_on:
- php
networks:
- stinger-cms
command: install --ignore-platform-reqs --no-scripts