-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (32 loc) · 666 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (32 loc) · 666 Bytes
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
version: '3'
services:
db:
image: postgres:11.4-alpine
container_name: postgres
ports:
- 5432:5432
volumes:
- ./pg_data:/var/lib/postgresql/data/pgdata
environment:
POSTGRES_PASSWORD: 123
POSTGRES_DB: docker_test
PGDATA: /var/lib/postgresql/data/pgdata
restart: always
app:
image: drucoder/web-server
ports:
- 3000-3005:3000
environment:
POSTGRES_HOST: db
restart: always
links:
- db
nginx:
image: nginx:1.17.2-alpine
container_name: nginx
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf
links:
- app
ports:
- 8989:8989