mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-08 04:04:42 +02:00
update
This commit is contained in:
parent
414672f1a6
commit
aacfd8a6f6
@ -10,11 +10,13 @@ postgres:
|
||||
image: postgres:alpine
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- ./data:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=root
|
||||
- POSTGRES_PASSWORD=root
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
- POSTGRES_DB=postgres
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
```
|
||||
|
||||
## up and running
|
||||
@ -22,7 +24,7 @@ postgres:
|
||||
```bash
|
||||
$ docker-compose up -d
|
||||
|
||||
$ docker-compose exec postgres psql -U root postgres
|
||||
$ docker-compose exec postgres psql -U postgres postgres
|
||||
>>> SELECT CURRENT_TIMESTAMP;
|
||||
now
|
||||
-------------------------------
|
||||
|
@ -5,7 +5,7 @@ postgres:
|
||||
volumes:
|
||||
- ./data:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=root
|
||||
- POSTGRES_PASSWORD=root
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
- POSTGRES_DB=postgres
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
|
@ -4,5 +4,5 @@ scrapyd:
|
||||
- "6800:6800"
|
||||
volumes:
|
||||
- ./data:/var/lib/scrapyd
|
||||
- /usr/local/lib/python2.7/dist-packages
|
||||
restart: always
|
||||
- /usr/local/lib/python3.7/dist-packages
|
||||
restart: unless-stopped
|
||||
|
Loading…
Reference in New Issue
Block a user