Skip to content

Commit b1d8e31

Browse files
committed
ci: remove host network from prod
1 parent 9ee8781 commit b1d8e31

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

docker-compose.production.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ services:
1616
env_file:
1717
- .env
1818
restart: always
19-
network_mode: "host" # this is needed to use host postgres, feel free to remove this line and use "postgres" container below
2019
ports:
2120
- "127.0.0.1:8816:8816"
2221

@@ -28,16 +27,16 @@ services:
2827
- app
2928
ports: []
3029

31-
# postgres:
32-
# image: postgres:12
33-
# container_name: infomate_postgres
34-
# restart: always
35-
# environment:
36-
# POSTGRES_USER: vas3k
37-
# POSTGRES_PASSWORD: vas3k
38-
# POSTGRES_DB: infomate
39-
# volumes:
40-
# - /tmp/pgdata:/var/lib/postgresql/data:rw
30+
postgres:
31+
image: postgres:15
32+
container_name: infomate_postgres
33+
restart: always
34+
environment:
35+
POSTGRES_USER: vas3k
36+
POSTGRES_PASSWORD: vas3k
37+
POSTGRES_DB: infomate
38+
volumes:
39+
- /home/vas3k/pgdata/infomate:/var/lib/postgresql/data:rw
4140

4241
migrate_and_init:
4342
<<: *app

0 commit comments

Comments
 (0)