Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,9 @@ ENV ASOBI_PORT=8080 \
ASOBI_DB_USER=postgres \
ASOBI_DB_PASSWORD=postgres

# Erlang term fragment spliced into kura's socket_options list.
# Default forces IPv4; set to "inet6" for IPv6-only Postgres networks.
ENV ASOBI_DB_SOCKET_OPTS=inet

ENTRYPOINT ["tini", "--"]
CMD ["bin/asobi_lua", "foreground"]
3 changes: 2 additions & 1 deletion config/prod_sys.config.src
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
{database, "${ASOBI_DB_NAME}"},
{user, "${ASOBI_DB_USER}"},
{password, "${ASOBI_DB_PASSWORD}"},
{pool_size, 10}
{pool_size, 10},
{socket_options, [${ASOBI_DB_SOCKET_OPTS}]}
]},
{asobi, [
{game_dir, "/app/game"}
Expand Down
Loading