-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (56 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
61 lines (56 loc) · 1.17 KB
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
version: "3"
services:
#Postgres service
db:
image: postgres
container_name: postgres
restart: always
volumes:
- ./postgresql-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: "q1w2e3"
# create bd on first start
POSTGRES_DB: "processing"
ports:
- 5432:5432
#Adminer service for db access
adminer:
image: adminer
container_name: adminer
restart: always
ports:
- 8080:8080
#Node service
npm:
image: node:slim
volumes:
- ./:/var/www
working_dir: /var/www
command: bash -c "npm install && npm run dev"
#PHP Service
app:
build: docker/php
container_name: app
restart: unless-stopped
tty: true
environment:
SERVICE_NAME: app
SERVICE_TAGS: dev
working_dir: /var/www
volumes:
- ./:/var/www
- ./docker/php/local.ini:/usr/local/etc/php/conf.d/local.ini
expose:
- 9000
#Nginx Service
webserver:
image: nginx:alpine
container_name: webserver
restart: unless-stopped
tty: true
ports:
- 80:80
- 443:443
volumes:
- ./:/var/www
- ./docker/nginx/conf.d/:/etc/nginx/conf.d/