forked from Hithomelabs/CFTunnels
Env name added in container name
This commit is contained in:
parent
057d0120b7
commit
25ef5660fa
@ -19,7 +19,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
container_name: cftunnel-db
|
container_name: cftunnel-db-${ENV}
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: cftunnel
|
POSTGRES_DB: cftunnel
|
||||||
POSTGRES_USER: ${POSTGRES_USERNAME}
|
POSTGRES_USER: ${POSTGRES_USERNAME}
|
||||||
|
|||||||
16
postgres-docker-compose.yaml
Normal file
16
postgres-docker-compose.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres
|
||||||
|
container_name: cftunnel-db
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: cftunnel
|
||||||
|
POSTGRES_USER: root
|
||||||
|
POSTGRES_PASSWORD: password
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
|
volumes:
|
||||||
|
- pgdata:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
pgdata:
|
||||||
Loading…
Reference in New Issue
Block a user