-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
57 lines (51 loc) · 1.3 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
version: '3'
services:
nginx:
image: nginx:latest
ports:
- "8080:80"
volumes:
- ./docker/nginx/:/etc/nginx/conf.d/
- ./public:/var/www/app/public/
depends_on:
- php
php:
build:
context: .
dockerfile: ./docker/php/Dockerfile
depends_on:
- postgres
volumes:
- ./:/var/www/app/:rw
working_dir: /var/www/app/
environment:
- SYMFONY_ENV=dev
- PGHOST=postgres
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/techmeetups
env_file:
- ./docker/env
node:
build: ./docker/node
volumes:
- ./:/usr/src/client:rw
postgres:
image: postgres:latest
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data:rw
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=techmeetups
pgadmin4:
image: fenglc/pgadmin4:latest
depends_on:
- postgres
ports:
- "5050:5050"
environment:
- DEFAULT_USER=admin
- DEFAULT_PASSWORD=password
volumes:
postgres-data: {}