-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (43 loc) · 911 Bytes
/
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
services:
php-fpm:
build:
context: docker/php
container_name: cards_php
working_dir: /var/www/html
volumes:
- .:/var/www/html
- ~/.composer:/.composer
networks:
- network_cards
nginx:
container_name: cards_nginx
build:
dockerfile: docker/nginx/Dockerfile
context: .
target: basic
working_dir: /var/www/html
volumes:
- ./public:/var/www/html
ports:
- ${API_PORT}:80
networks:
- network_cards
adminer:
image: adminer:latest
container_name: cards_adminer
ports:
- ${ADMINER_PORT}:8080
networks:
- network_cards
postgres:
image: postgres:11.1-alpine
container_name: cards_postgres
ports:
- ${DATABASE_PORT}:5432
environment:
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
networks:
- network_cards
networks:
network_cards:
driver: bridge