diff options
author | Jesús <heckyel@hyperbola.info> | 2021-04-06 16:05:29 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-04-06 16:05:29 -0500 |
commit | 407a6f96d85c9439756e69d8073bd546ea393013 (patch) | |
tree | af8a68b9678e0bb0b0966bcaaf21bb491d9c95e4 /docker-compose.yml | |
download | mediagoblin-docker-compose-407a6f96d85c9439756e69d8073bd546ea393013.tar.lz mediagoblin-docker-compose-407a6f96d85c9439756e69d8073bd546ea393013.tar.xz mediagoblin-docker-compose-407a6f96d85c9439756e69d8073bd546ea393013.zip |
first commit
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..efb2669 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,37 @@ +version: "3" + +services: + mediagoblin: + container_name: mediagoblin + image: rusian/mediagoblin:latest + networks: + default: + ipv4_address: 172.32.0.3 + env_file: + - .env + ports: + - "51090:80" + volumes: + - ${MEDIA_PATH}:${MEDIA_DEST_PATH} + depends_on: + - postgres + restart: "always" + + postgres: + container_name: postgresql + image: postgres:12.6 + networks: + default: + ipv4_address: 172.32.0.2 + env_file: + - .env + volumes: + - ${POSTGRES_PATH}:${POSTGRES_DEST_PATH} + restart: "always" + +networks: + default: + ipam: + driver: default + config: + - subnet: 172.32.0.0/16 |