-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yaml
54 lines (54 loc) · 1.16 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
services:
nginx:
depends_on:
php:
condition: service_started
expose:
- "${NGINX_PORT}"
image: nginx:latest
networks:
nginx: null
ports:
- target: 80
published: "${NGINX_PORT}"
restart: unless-stopped
volumes:
- type: bind
source: ./docker/nginx_default.conf
target: /etc/nginx/conf.d/default.conf
- type: bind
source: ./public
target: /app/public
php:
depends_on:
postgres:
condition: service_started
image: ghcr.io/sebsept/docker-php-symfony-starter:dev
networks:
nginx: null
postgres: null
restart: unless-stopped
user: 0:1000
volumes:
- type: bind
source: ./
target: /app
postgres:
environment:
POSTGRES_DB: my_symfony
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
expose:
- "${POSTGRES_PORT}"
image: postgres:latest
networks:
postgres: null
ports:
- target: 5432
published: "${POSTGRES_PORT}"
restart: unless-stopped
networks:
nginx:
name: composer-starter_nginx
postgres:
name: composer-starter_postgres