-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (55 loc) · 1.01 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
version: '3.1'
services:
psql:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: secret
POSTGRES_USER: homestead
ports:
- 5432:5432
networks:
- backend-net
adminer:
image: adminer
restart: always
ports:
- 8080:8080
api_php_core:
build:
context: ./
dockerfile: api.dockerfile
container_name: api_php_core
restart: unless-stopped
tty: true
environment:
SERVICE_NAME: api
SERVICE_TAGS: dev
working_dir: /var/www
volumes:
- ./:/var/www
networks:
- backend-net
depends_on:
- psql
webserver_php_core:
image: nginx:alpine
container_name: webserver_php_core
restart: unless-stopped
tty: true
ports:
- "7000:8080"
volumes:
- ./:/var/www
- ./nginx/conf.d/:/etc/nginx/conf.d/
networks:
- backend-net
depends_on:
- psql
#Docker Networks
networks:
backend-net:
driver: bridge
#Volumes
volumes:
dbdata: